Commit Graph

  • 9435e9576a Move getRewardByHeight from Block to BlockChain catbref 2019-06-26 12:30:51 +01:00
  • f45cedb6ff Save lastConnected for outbound peers on completed handshake catbref 2019-06-27 11:12:36 +01:00
  • 840f52ff90 Added API call GET /blocks/timestamp/{timestamp} and increase timeout on POST /admin/forcesync from 5s to 30s catbref 2019-06-24 10:33:25 +01:00
  • 2621e04025 Change Peer ping interval to below that of SOCKET_TIMEOUT, used by blocking read()s catbref 2019-06-21 14:45:59 +01:00
  • e47b4dceb2 StringBuilder, and other, optimizations for repository-related classes. catbref 2019-06-21 14:04:42 +01:00
  • 48eae0cb38 Minor change to test account assertion message. catbref 2019-06-21 07:32:28 +01:00
  • 99ffd62a6e Change to how "best block" is determined. catbref 2019-06-14 17:58:54 +01:00
  • c559c16a4a Add extra isInterrupted() quick-exits to Controller during TRANSACTION_SIGNATURES processing. catbref 2019-06-20 08:50:39 +01:00
  • fc82bcaf49 Tidying up peer info. catbref 2019-06-19 16:55:02 +01:00
  • 8b135eb447 Improve startup & shutdown. Improve API call POST /admin/forcesync. catbref 2019-06-19 14:39:40 +01:00
  • 84f5935d38 Improve shutdown of Network. catbref 2019-06-18 11:16:59 +01:00
  • c68e0eb6ea change auto-update download locations & logging message catbref 2019-06-17 16:58:45 +01:00
  • 5b70f0004d Disregard misbehaved peers before counting to see if we can synchronize. catbref 2019-06-17 15:51:25 +01:00
  • 915eebb8e5 BlockChain.isTestNet now BlockChain.isTestChain. catbref 2019-06-17 13:31:37 +01:00
  • 1d81c4db6b BlockGen / Synchronizer improvements catbref 2019-06-17 11:06:21 +01:00
  • 5acc92ef26 Improve TRANSACTION_SIGNATURES handling in Controller. catbref 2019-06-17 10:30:57 +01:00
  • b48f671774 In AutoUpdate, pass download buffer to SHA256 digester BEFORE deXORing. catbref 2019-06-17 10:01:40 +01:00
  • 8727780b77 Added XorUpdate utility to help prepare auto-updates. catbref 2019-06-17 09:36:40 +01:00
  • 877c126ba3 Don't allow incorrect/null ARBITRARY dataType when building transactions via API's POST /arbitrary call. catbref 2019-06-17 09:15:37 +01:00
  • 4cdb5e6b95 Auto-Update improvements catbref 2019-06-17 09:10:06 +01:00
  • 2e6d33659c Fix CANCEL_ASSET_ORDER check for already closed, partially/fully matched, order. catbref 2019-06-16 11:41:33 +01:00
  • aa141bb97f Added settings.json to gitignore catbref 2019-06-14 08:45:03 +01:00
  • d1d45b12f7 Added unit test to check initial proxy reward share of 0% is invalid catbref 2019-06-12 10:23:51 +01:00
  • 9af18aad34 Setting proxy forging reward share to 0% removes proxy forging relationship. catbref 2019-06-12 10:17:50 +01:00
  • 46dc91e5a0 Bump HSQLDB from svn r5970 to release v2.5.0 catbref 2019-06-11 15:48:58 +01:00
  • ae6cf9fc32 Fix ordering when requesting summary of block forgers catbref 2019-06-11 14:24:38 +01:00
  • 4f25fffbe9 Change API transaction subsmission from single-shot to 500ms timeout for obtaining blockchain lock catbref 2019-06-11 14:24:05 +01:00
  • 03f60ef898 Fix incorrect declared transaction length for SET_GROUP and VOTE_ON_POLL transactions. catbref 2019-06-11 11:27:52 +01:00
  • 02e8bdb034 Add support for fetching updates using a combination of hostname and IP address. catbref 2019-06-10 10:41:50 +01:00
  • 8dd4745c5c Work on auto-update catbref 2019-06-07 13:12:24 +01:00
  • 4ced9cc3e2 More flexible auto-update locations catbref 2019-06-06 18:21:25 +01:00
  • 1d7bda5d46 Don't propagate new transactions back to sending peer. Added small inter-peer delay when doing network broadcast. catbref 2019-06-06 17:29:29 +01:00
  • c2e8392f05 Synchronization improvements (again!) catbref 2019-06-06 14:30:52 +01:00
  • d910cce807 Improve API peer info output catbref 2019-06-06 14:18:16 +01:00
  • 20200b844e Networking and synchronization improvements catbref 2019-06-05 11:57:40 +01:00
  • ffffb50884 Networking/Controller changes to aid broadcast of unconfirmed transactions. catbref 2019-06-04 17:35:03 +01:00
  • 680361daa6 Temporary fix to Controller to only try to acquire blockchain for incoming new unconfirmed transactions catbref 2019-06-04 16:18:10 +01:00
  • c03a5c3d0e Fix incorrect count of forged blocks catbref 2019-06-04 16:16:26 +01:00
  • b7f53afe68 Improve API output for GET /peers catbref 2019-06-04 16:15:50 +01:00
  • 3a3cc5a81b Improve API output of GET /blocks/forgers catbref 2019-06-04 16:15:18 +01:00
  • 97a5b3ef9b Increase max proxy relationships in blockchain config catbref 2019-06-04 16:14:23 +01:00
  • 5429cb12dd Possible fix for single instance check by AI Windows launcher catbref 2019-06-04 13:58:06 +01:00
  • 2f3123a315 Add lock around some Peer.peerData actions to help sync catbref 2019-06-04 13:34:16 +01:00
  • 6a969f9473 Add limit to number of proxy forging relationships per generator account. catbref 2019-06-04 13:32:43 +01:00
  • de96e8347d Move handling of GET_PEERS from Controller to Network. On sync fail, only update outbound peer info in repository to help prevent useless 'known peer' entries. catbref 2019-06-04 09:13:03 +01:00
  • dcb8d67236 Don't allow new transactions to be submitted if not up to date catbref 2019-06-04 08:55:20 +01:00
  • 491a6ecd67 Fix incorrect declared transaction length for create-group transactions catbref 2019-06-04 08:24:19 +01:00
  • 9ac52f6a86 Fix missing network-related repository.saveChanges() catbref 2019-06-03 16:25:41 +01:00
  • 7993c3e594 Change node UI start URL to index.html catbref 2019-06-03 16:08:14 +01:00
  • 921953d304 Clean up inbound peer entries from repository & fix sending peer lists catbref 2019-06-03 11:51:54 +01:00
  • 912ec22417 Minor warning fix catbref 2019-06-03 10:24:46 +01:00
  • a2cc4983a0 Add "involved" optional query param to API call GET /address/proxying, for convenience catbref 2019-06-03 09:51:13 +01:00
  • e42c3e60bc Added mock-up of node management UI catbref 2019-06-03 08:46:42 +01:00
  • ab9fd681f3 Fix synchronizer so incoming block's transactions have approval status set catbref 2019-06-03 08:07:33 +01:00
  • 4667b768df Added tests for each group-approval outcome + fixes catbref 2019-06-02 17:53:17 +01:00
  • c9f226cf88 group approval tests and fixes catbref 2019-06-02 17:07:07 +01:00
  • 8af761c1c3 Updated orphaning code of Block and Transaction subclasses catbref 2019-06-02 14:41:42 +01:00
  • 4b3f877dc0 Interim commit - refactored transaction transformers and fixed unit test compiler errors catbref 2019-06-01 17:05:45 +01:00
  • 06ba004238 Interim commit - refactored HSQLDBTransactionRepository, and subclasses. Also added approval_height to transactions, renaming height to block_height. catbref 2019-06-01 16:24:15 +01:00
  • 431e15c7ae interim commit after refactoring TransactionData, and subclasses catbref 2019-06-01 15:13:12 +01:00
  • da1bd82c19 Minor integration progress catbref 2019-06-01 10:45:07 +01:00
  • 9bb673ba82 Interim commit of *Transaction refactoring catbref 2019-06-01 10:26:20 +01:00
  • c9968b3dd2 Interim commit of *TransactionData classes for safety catbref 2019-05-31 18:11:54 +01:00
  • 041773cf41 Synchronizer asks for approval-pending transaction from peer if needed catbref 2019-05-30 17:17:46 +01:00
  • c83d888a7d Demo HTML/JS page to show encrypted local storage of private key catbref 2019-05-30 16:32:54 +01:00
  • 3f2453e404 ApiError zh locale (but untranslated) catbref 2019-05-30 11:51:15 +01:00
  • 414f9679c8 Synchronizer logging improvements catbref 2019-05-30 11:50:45 +01:00
  • cd5f9a1e6c Convert ClassLoader.getSystemResource* calls to class.getResource* variant for OSGi, etc. safety catbref 2019-05-30 11:23:53 +01:00
  • 94fceeb34a Move default blockchain.json into resources catbref 2019-05-30 11:04:40 +01:00
  • a4f2cf50b0 Updated node management UI (was previously "bundled ui") catbref 2019-05-29 08:28:45 +01:00
  • f4022dd243 initial work on adding bundled node-management UI catbref 2019-05-25 08:37:52 +01:00
  • 99024ee2ef Synchronization improvements catbref 2019-05-28 17:33:50 +01:00
  • 23bcba1650 HSQLDBRepository.toOffsetDateTime now returns null if passed null catbref 2019-05-28 17:27:29 +01:00
  • 58afb53be9 Rename getReferenceGeneratorSignature to getGeneratorSignatureFromReference catbref 2019-05-28 17:26:44 +01:00
  • 0cb54abb79 Fix bug in checking transaction group-approval threshold catbref 2019-05-28 17:23:10 +01:00
  • 8b949dc1a1 Added simplistic blockchain validation on startup catbref 2019-05-28 17:21:38 +01:00
  • f167d0c831 Add JAXB discriminator to GROUP_INVITE transactions. catbref 2019-05-28 17:20:03 +01:00
  • b2f235f7a5 Changes to API regarding proxy forging calls catbref 2019-05-27 12:06:46 +01:00
  • f3c588d90f Fix sometimes erroneous Ed25519 public key to X25519 public key conversion. catbref 2019-05-25 19:18:01 +01:00
  • 1b4369e5e8 Default settings changes catbref 2019-05-25 09:44:31 +01:00
  • c917191df2 Send network broadcasts over all handshake-completed peers. catbref 2019-05-25 08:38:47 +01:00
  • 1046f72e7b Slightly better logging for synchronizer catbref 2019-05-24 13:48:39 +01:00
  • 8f7c954f5a Proxy private keys are now SHA256(shared secret only) instead of SHA256(shared secret + public keys). HTML/JS in src/test/resources/proxy-key-example.html updated accordingly. catbref 2019-05-24 12:39:24 +01:00
  • 40d6190265 API tidy up catbref 2019-05-23 09:46:32 +01:00
  • a3d4cf2900 MAJOR: Don't delete transactions when orphaning - make them unconfirmed again catbref 2019-05-22 14:50:37 +01:00
  • 07e8e01865 Add check to PROXY_FORGING so that proxy public key always maps to same forger-recipient combo catbref 2019-05-22 10:19:52 +01:00
  • d0b45cb696 Proxy forging share to recipient can now be zero catbref 2019-05-21 17:22:15 +01:00
  • 0259702df2 Fix generating X25519 shared secret. catbref 2019-05-21 17:06:01 +01:00
  • 4279ad0673 Fix Javascript shared-secret & proxy forging private key code catbref 2019-05-21 12:38:54 +01:00
  • 748dddcc32 Add checks to API call POST /admin/forgingaccounts. catbref 2019-05-20 14:35:05 +01:00
  • 7409c024f6 Include proxy-forged blocks in BlockRepository.countForgedBlocks. catbref 2019-05-20 12:24:09 +01:00
  • ae6b41a893 Improve API call showing block forger summaries to include proxy info catbref 2019-05-20 11:15:44 +01:00
  • 92e60e2531 Add method to prune old peers from database catbref 2019-05-20 11:15:01 +01:00
  • bf8a12d422 Delete old, basic block-explorer catbref 2019-05-20 10:04:21 +01:00
  • 14686e1e0d Corrected wrong Synchronization enum result catbref 2019-05-17 08:07:06 +01:00
  • 6a8a0f25c1 Synchronization improvements catbref 2019-05-17 07:55:11 +01:00
  • 1f81784bd6 Improved synchronization logging catbref 2019-05-16 13:30:26 +01:00
  • c05fe58676 Add static method to extract generatorSignature from block reference catbref 2019-05-16 13:12:35 +01:00
  • ce2dc9b8ad Reduce synchronization attempts from every 10s to every 60s catbref 2019-05-16 12:05:09 +01:00
  • 1b58d12005 Fix peer data bug where lastConnected was swapped with lastAttempted. catbref 2019-05-16 11:52:14 +01:00