Commit Graph

  • 31207da192 [NOD-1004] Remove some more code duplication in Good(). stasatdaglabs 2020-06-01 16:17:25 +03:00
  • 6b235a96d0 [NOD-1004] Remove code duplication in Good(). stasatdaglabs 2020-06-01 14:52:15 +03:00
  • 2d798a5611
    [NOD-1020] Do send addr response to getaddr messages even if there aren't any addresses to send. (#740) stasatdaglabs 2020-06-01 14:09:18 +03:00
  • 15eaf28565 [NOD-1020] Do send addr response to getaddr messages even if there aren't any addresses to send. stasatdaglabs 2020-06-01 11:18:19 +03:00
  • 3be050df0b [NOD-1017] Name newAddrManagerForTest return params Ori Newman 2020-05-31 15:53:25 +03:00
  • cbd2dd0802 [NOD-1017] Renames Ori Newman 2020-05-31 15:52:21 +03:00
  • 16a42dbea5 [NOD-1017] Separate to smaller functions Ori Newman 2020-05-31 15:49:56 +03:00
  • 3a22249be9
    [NOD-1012] Fix erroneous partial node check (#739) stasatdaglabs 2020-05-31 14:13:30 +03:00
  • 148ff3fd24 [NOD-1012] Fix unit tests. stasatdaglabs 2020-05-31 14:06:53 +03:00
  • 54e4d63fab [NOD-1012] Fix bad partial node check. stasatdaglabs 2020-05-31 13:23:56 +03:00
  • a4c1898624
    [NOD-1012] Disable subnetworks (#731) stasatdaglabs 2020-05-31 10:50:46 +03:00
  • 7c30abe961 [NOD-1012] Set EnableNonNativeSubnetworks = true in the tests that need them rather than by default in Simnet. stasatdaglabs 2020-05-31 09:59:54 +03:00
  • 672f02490a
    [NOD-763] Change genesis version (#737) Ori Newman 2020-05-28 09:55:59 +03:00
  • a89dfb50cb [NOD-1010] In kaspaminer, stop checking getBlockTemplate's isSynced after first time it's true stasatdaglabs 2020-05-27 17:46:49 +03:00
  • fc00275d9c
    [NOD-553] Get rid of base58 (#735) stasatdaglabs 2020-05-27 17:37:03 +03:00
  • b2e0f9bfe4 [NOD-763] Change genesis version Ori Newman 2020-05-27 16:28:22 +03:00
  • 21adeb46d7 [NOD-1013] Don't wait for syncManager and rebroadcastHandler when doing graceful shutdown Ori Newman 2020-05-27 12:20:10 +03:00
  • b726ed3bba [NOD-553] Get rid of base58. stasatdaglabs 2020-05-27 12:15:21 +03:00
  • 31d01378bd [NOD-553] Get rid of wif. stasatdaglabs 2020-05-27 12:05:41 +03:00
  • 85d8ab5a42 [NOD-1013] Drain channels forever without blocking when doing graceful shutdown Ori Newman 2020-05-26 18:11:50 +03:00
  • f7851c68c2 [NOD-1017] Change comments and rename variables Ori Newman 2020-05-26 16:18:23 +03:00
  • 0f26f41c16 [NOD-1017] Fix tests Ori Newman 2020-05-26 16:02:07 +03:00
  • 3d39c2746c [NOD-1017] Move peers.json to db Ori Newman 2020-05-26 12:25:04 +03:00
  • b4c7b0c2c4 [NOD-1012] Use EnableNonNativeSubnetworks in peer.go. stasatdaglabs 2020-05-25 15:58:57 +03:00
  • 2fb10a677b [NOD-1012] Don't skip subnetwork tests. stasatdaglabs 2020-05-25 15:50:39 +03:00
  • 6219b93430
    [NOD-1018] Exit after 2 minutes if graceful shutdown fails (#732) v0.4.0-beta4 v0.4.0-beta3 Ori Newman 2020-05-25 14:30:43 +03:00
  • 6d84f0de00 [NOD-1018] Change time.Tick to time.After Ori Newman 2020-05-25 13:57:29 +03:00
  • 2653878e65 [NOD-1018] Exit after 2 minutes if graceful shutdown fails Ori Newman 2020-05-25 13:51:32 +03:00
  • 3a4571d671
    [NOD-965] Make LookupNode return boolean (#729) Ori Newman 2020-05-25 12:51:30 +03:00
  • 5683450793 [NOD-1012] Disconnect from non-native peers. stasatdaglabs 2020-05-25 12:49:13 +03:00
  • 48a56d7481 [NOD-1012] Fix/skip tests and remove --subnetwork. stasatdaglabs 2020-05-25 12:30:42 +03:00
  • db2ddb5ef6 [NOD-1012] Fix logic error. stasatdaglabs 2020-05-25 12:21:01 +03:00
  • 86be25348f [NOD-1012] Disallow non-native/coinbase transactions. stasatdaglabs 2020-05-25 12:19:26 +03:00
  • 96052ac69a
    [NOD-809] Change fee rate to fee per megagram (#730) Ori Newman 2020-05-24 16:59:37 +03:00
  • 62b77bdb64 [NOD-809] Change fee rate to fee per megagram Ori Newman 2020-05-24 12:05:08 +03:00
  • 11183d23c3 [NOD-965] Use bi.index's ok in LookupNode Ori Newman 2020-05-21 11:25:45 +03:00
  • 3ca4b6e923 [NOD-965] Remove irrelevant test Ori Newman 2020-05-21 11:19:17 +03:00
  • d4373c97d3 [NOD-965] Rename blockDAG->dag Ori Newman 2020-05-20 17:58:10 +03:00
  • a91863d4d8 [NOD-965] Make dag.index.LookupNode return false if node is not found Ori Newman 2020-05-20 17:57:38 +03:00
  • 6463a4b5d0
    [NOD-1011] Don't cache isSynced on getBlockTemplate (#728) v0.4.0-beta2 Ori Newman 2020-05-20 14:38:24 +03:00
  • 21c993a763 [NOD-974] Don't cache isSynced on getBlockTemplate Ori Newman 2020-05-20 14:33:57 +03:00
  • 0ca127853d
    [NOD-974] UTXO-Commitments shouldn't include the new block's transactions (#727) v0.4.0-beta1 Svarog 2020-05-20 12:43:52 +03:00
  • 7895c02720 [NOD-974] Fix comments Ori Newman 2020-05-20 12:39:05 +03:00
  • cd0b58ac64 [NOD-974] Fix TestUTXOCommitment. stasatdaglabs 2020-05-20 12:03:49 +03:00
  • 0e72e7aa0b [NOD-974] Fix TestIsKnownBlock and TestGHOSTDAG. stasatdaglabs 2020-05-20 11:55:50 +03:00
  • eb6741256c [NOD-974] Generate new test blocks. stasatdaglabs 2020-05-20 11:52:28 +03:00
  • 9d681ca306 Merge remote-tracking branch 'origin/v0.4.0-dev' into nod-974-utxo-commitments-without-transactions stasatdaglabs 2020-05-20 11:49:25 +03:00
  • bc88f12d8c
    [NOD-990] Save utxo diffs of past UTXO (#724) Ori Newman 2020-05-20 11:15:37 +03:00
  • bec2f97fe0 [NOD-990] Fix comment Ori Newman 2020-05-20 11:06:42 +03:00
  • 7d4d00bf5f [NOD-990] Fix wrong variable names Ori Newman 2020-05-20 11:06:05 +03:00
  • b884ba128e
    [NOD-1008] In utxoDiffStore, keep diffData in memory for blocks whose blueScore is at least virtualBlueScore - X (#726) stasatdaglabs 2020-05-20 10:47:01 +03:00
  • d473f2ef2c [NOD-1008] Use dag.TipHashes instead of tracking tips manually. stasatdaglabs 2020-05-20 10:38:50 +03:00
  • fe25ea3d8c
    [NOD-1001] Make an error in Peer.start() stop the connection process from continuing. (#723) Svarog 2020-05-20 10:36:44 +03:00
  • 1bbaf7a3e0 [NOD-1001] Removed redundant // Mike Zak 2020-05-20 10:20:27 +03:00
  • 32bd608f4f [NOD-990] Fix comment Ori Newman 2020-05-20 10:01:39 +03:00
  • 1418b26de7 [NOD-1001] Removed temporary sleep of 1 second Mike Zak 2020-05-20 09:49:32 +03:00
  • 6bb88fe24d [NOD-990] Break long lines Ori Newman 2020-05-20 09:28:05 +03:00
  • 58601660c3 [NOD-1008] Rename diffDataByHash to diffDataByBlockNode. stasatdaglabs 2020-05-19 18:06:36 +03:00
  • a52be94137 [NOD-1008] Fix a comment. stasatdaglabs 2020-05-19 18:03:39 +03:00
  • a9f05266cb [NOD-1008] Finish implementing TestClearOldEntries. stasatdaglabs 2020-05-19 18:02:58 +03:00
  • 087aa716d5 Merge remote-tracking branch 'origin/v0.4.0-dev' into nod-1008-clear-diffs stasatdaglabs 2020-05-19 17:57:52 +03:00
  • e0f587f599
    [NOD-877] Separate UTXO header code to two fields in serialization: blue score and packed flags (#725) stasatdaglabs 2020-05-19 17:56:07 +03:00
  • faa1916348 [NOD-877] Fix TestVirtualBlock. stasatdaglabs 2020-05-19 17:43:00 +03:00
  • 35d5625043 [NOD-877] Fix TestUTXOSerialization and TestGHOSTDAG. stasatdaglabs 2020-05-19 17:41:34 +03:00
  • f4fbbd0eac [NOD-877] Fix TestBlueBlockWindow. stasatdaglabs 2020-05-19 17:37:38 +03:00
  • 2b033a3cd5 [NOD-877] Fix TestIsKnownBlock. stasatdaglabs 2020-05-19 17:36:06 +03:00
  • 8c613883fe [NOD-877] Generate new test blocks. stasatdaglabs 2020-05-19 17:34:02 +03:00
  • e67e63ee0c [NOD-877] In UTXOEntry serialization, extract packedFlags out to a separate Uint8. stasatdaglabs 2020-05-19 17:30:32 +03:00
  • 308b563bec [NOD-1008] Begin implementing TestClearOldEntries. stasatdaglabs 2020-05-19 17:19:56 +03:00
  • 7467e90048 [NOD-1001] Make verack channels buffered Mike Zak 2020-05-19 17:11:10 +03:00
  • 1454c198bd [NOD-1001] Use separate verack channels for inPeer and outPeer Mike Zak 2020-05-19 17:01:33 +03:00
  • e9e1ef4772
    [NOD-1006] Make use of a pool to avoid excessive allocation of big.Ints (#722) stasatdaglabs 2020-05-19 16:29:21 +03:00
  • 9c2a73027b [NOD-1008] Add clearOldEntries to saveChangesFromBlock. stasatdaglabs 2020-05-19 15:20:29 +03:00
  • 08aa5fcde0 [NOD-1008] Fix a typo. stasatdaglabs 2020-05-19 14:33:22 +03:00
  • 832ddb0b54 [NOD-1008] Increase maxBlueScoreDifferenceToKeepLoaded to 100. stasatdaglabs 2020-05-19 14:32:57 +03:00
  • 263f371a36 [NOD-1008] Implement clearOldEntries. stasatdaglabs 2020-05-19 14:31:35 +03:00
  • de32f1b18d [NOD-1008] Use *blockNode as keys in utxoDiffStore.loaded and .dirty. stasatdaglabs 2020-05-19 14:22:15 +03:00
  • c7e96ee519 [NOD-1006] Remove unnecessary line. stasatdaglabs 2020-05-19 12:24:16 +03:00
  • e0251d651c [NOD-1006] Move the big int pool to utils. stasatdaglabs 2020-05-19 12:18:59 +03:00
  • 621022ad04 [NOD-1006] Use a pool for requiredDifficulty as well. stasatdaglabs 2020-05-19 12:07:58 +03:00
  • 452036418d [NOD-1001] Use correct remote address in setupPeersWithConns and return to address string literals Mike Zak 2020-05-19 11:48:27 +03:00
  • 61db4ca796 [NOD-990] Make cloneWithoutBase method Ori Newman 2020-05-19 11:44:58 +03:00
  • 56f17ac978 [NOD-1006] Defer releasing bigInts. stasatdaglabs 2020-05-19 10:53:53 +03:00
  • 60fe4877a8 [NOD-1001] Move example_test back out of peer package + fix some typos Mike Zak 2020-05-19 09:22:39 +03:00
  • 86b41a86d4 [NOD-990] Use pkg/errors on panic Ori Newman 2020-05-18 18:04:03 +03:00
  • db64e76117 [NOD-990] Add test for duplicate transactions on the same block Ori Newman 2020-05-18 18:03:19 +03:00
  • c2e49ca6ff [NOD-990] Fix comment Ori Newman 2020-05-18 17:36:27 +03:00
  • b2c2bf1d30 [NOD-990] Add testProcessBlockRuleError Ori Newman 2020-05-18 17:35:53 +03:00
  • 945c847c97 Merge branch 'nod-974-utxo-commitments-without-transactions' into nod-990-save-utxo-diffs-of-past-utxo Ori Newman 2020-05-18 17:21:19 +03:00
  • 7687391f36 Merge remote-tracking branch 'origin/v0.4.0-dev' into nod-974-utxo-commitments-without-transactions Ori Newman 2020-05-18 17:20:29 +03:00
  • c3e1bd2386 [NOD-990] Make ErrDoubleSpendInSameBlock more detailed Ori Newman 2020-05-18 17:00:10 +03:00
  • d2aaf65416 [NOD-990] Rename ErrDoubleSpendsWithBlockTransaction -> ErrDoubleSpendInSameBlock Ori Newman 2020-05-18 16:58:21 +03:00
  • 5cc0ee19f1 [NOD-990] Break long lines Ori Newman 2020-05-18 16:55:10 +03:00
  • f8a3a7c724 [NOD-990] Rename i->j to avoid confusion Ori Newman 2020-05-18 16:53:17 +03:00
  • 1509a9217d [NOD-1001] Fix typos and find-and-replace errors Mike Zak 2020-05-18 14:42:12 +03:00
  • 0a3f57a4e1 [NOD-990] Remove redundant functions diffFromTx and diffFromAcceptedTx Ori Newman 2020-05-18 14:37:29 +03:00
  • d4dc0278d9 [NOD-990] Call resetExtraNonceForTest in TestUTXOCommitment Ori Newman 2020-05-18 14:36:34 +03:00
  • 54073186d0 [NOD-990] Check for block double spends with its past instead of building its UTXO Ori Newman 2020-05-18 13:46:59 +03:00
  • 5d56673d47 [NOD-1006] Optimize averageTarget with a big.Int pool. stasatdaglabs 2020-05-18 14:28:52 +03:00
  • e85eb055b5 [NOD-1006] Fix refactor errors. stasatdaglabs 2020-05-18 14:13:43 +03:00