Commit Graph

  • fbf02a892c [NOD-264] Fixed values in probabily test. stasatdaglabs 2019-08-12 17:36:28 +03:00
  • 79157c6c35 [NOD-234] Removed IsCurrent check from handleGetBlockTemplateRequest. Added an explanation for why we're checking the chainHeight. stasatdaglabs 2019-08-12 17:24:06 +03:00
  • bff0b301bb [NOD-234] Added an IsCurrent check to handleGetBlockTemplate. stasatdaglabs 2019-08-12 16:17:49 +03:00
  • a261ef73b9 [NOD-264] Tightened bounds in probability test. stasatdaglabs 2019-08-12 15:53:32 +03:00
  • 67bbe752dc [NOD-264] Added expected probability to the rest of the test cases. stasatdaglabs 2019-08-12 15:33:26 +03:00
  • 05a3e7f5a5 [NOD-264] Added a test over a range of txs with different gas/mass. stasatdaglabs 2019-08-12 15:10:50 +03:00
  • cb6602b8af [NOD-264] Fixed tests with missing fees. stasatdaglabs 2019-08-12 15:01:27 +03:00
  • 7eff03d82f [NOD-264] Added probabilistic tests. Fixed a couple of bugs in tx selection. stasatdaglabs 2019-08-12 14:39:05 +03:00
  • 72754491a6 [NOD-264] Added zero fee check. Added a couple more tests. stasatdaglabs 2019-08-12 11:28:09 +03:00
  • 1242b7d587 [NOD-264] Fixed misunderstood test. stasatdaglabs 2019-08-12 11:11:40 +03:00
  • 4cffb822c2 Merge remote-tracking branch 'origin/master' into nod-264-tx-selection stasatdaglabs 2019-08-12 10:17:35 +03:00
  • bb3f23b6dc [NOD-240] Get rid of all references for wallet related RPC commands (#361) stasatdaglabs 2019-08-12 09:54:07 +03:00
  • b5942fce76 [NOD-264] Fixed a comment. stasatdaglabs 2019-08-11 18:06:11 +03:00
  • af1cb26563 [NOD-264] Wrote a test for selectTxs. stasatdaglabs 2019-08-11 18:04:18 +03:00
  • f064b0cbc4 [NOD-264] Moved calcTxSelectionValue to the mining package. (Non-mining nodes shouldn't be forced to calc selection value for every transaction) stasatdaglabs 2019-08-11 14:46:19 +03:00
  • 17d25b6e06 Merge remote-tracking branch 'origin/master' into nod-264-tx-selection stasatdaglabs 2019-08-11 13:35:36 +03:00
  • ce7ddfd9bc [NOD-240] Removed a few last things that I've missed. stasatdaglabs 2019-08-11 13:12:28 +03:00
  • a3d8a36c61 [NOD-240] Removed wallet stuff from btcctl. stasatdaglabs 2019-08-11 13:07:43 +03:00
  • 1d0d5c4c54 [NOD-240] Finished removing walletsvrXXX.go. stasatdaglabs 2019-08-11 12:58:29 +03:00
  • 503c552475 [NOD-240] Moved GetBestBlockResult to dagsvrresults.go. stasatdaglabs 2019-08-11 12:50:14 +03:00
  • 8ce1915511 [NOD-240] Got rid of rpcclient/wallet.go and walletsvrcmds.go. stasatdaglabs 2019-08-11 12:33:53 +03:00
  • d4fe8c22c2 Merge remote-tracking branch 'origin/master' into nod-240-wallet-rpc stasatdaglabs 2019-08-11 12:26:37 +03:00
  • e5485ac5e6
    [NOD-262] Renamed all instances of GetBlocks to GetBlockInvs. (#359) stasatdaglabs 2019-08-11 12:25:29 +03:00
  • 8982f102f3 Merge remote-tracking branch 'origin/master' into nod-262-get-block-invs stasatdaglabs 2019-08-11 12:21:41 +03:00
  • b4f108f1b7 [NOD-240] Began removing btcwalletxxx.go. stasatdaglabs 2019-08-11 12:15:57 +03:00
  • 594a209f83 [NOD-263] Rename all instances of hashStop to stopHash. (#360) stasatdaglabs 2019-08-11 11:20:21 +03:00
  • 790706f9b1 [NOD-240] Removed references to the wallet in rpcserver.go. stasatdaglabs 2019-08-11 11:19:08 +03:00
  • 9ae8e2a0c2 [NOD-263] Renamed all instances of hashStop to stopHash. stasatdaglabs 2019-08-11 11:03:00 +03:00
  • 2b886eec7e [NOD-262] Renamed all instances of GetBlocks to GetBlockInvs. stasatdaglabs 2019-08-11 10:45:50 +03:00
  • bd75a2a5bd [NOD-241] Formatted locatorSummary. stasatdaglabs 2019-08-08 13:28:46 +03:00
  • 7054086b1f Merge remote-tracking branch 'origin/master' into nod-241-implement-lower-resolution-peer-rendezvous-point-discovery stasatdaglabs 2019-08-08 13:25:44 +03:00
  • 75dc131b0f [NOD-264] Wrote comments where appropriate. stasatdaglabs 2019-08-08 11:15:55 +03:00
  • 61f652652e [NOD-264] Fixed trying to get the gas limit for built-in subnetworks. stasatdaglabs 2019-08-07 17:19:15 +03:00
  • 063d372f86 [NOD-264] Implemented tx selection. stasatdaglabs 2019-08-07 17:04:18 +03:00
  • 9981ce7adb [NOD-255] When adding orphans during netsync process - report only to debug log, unless number of orphans > k*2 (#357) Svarog 2019-08-07 11:30:32 +03:00
  • 465ab311e8 [NOD-255] Update comment to explain the K*2 figure Mike Zak 2019-08-07 11:26:56 +03:00
  • 43206cad69 [NOD-255] If there are more than K*2 orphans in pool - report as a potential problem anyway Mike Zak 2019-08-07 10:49:17 +03:00
  • 49ac97c7db [NOD-265] Return an empty array for searchRawTransactions when no txs were found (#356) Svarog 2019-08-06 17:54:56 +03:00
  • eeae840d29 [NOD-264] Renamed the result object to txsForBlockTemplate. stasatdaglabs 2019-08-06 16:55:45 +03:00
  • 8aab172be5 [NOD-265] Return an empty array for searchRawTransactions when no txs were found Mike Zak 2019-08-06 16:41:06 +03:00
  • 4e128db43a [NOD-264] Moved transaction selection to a separate file. stasatdaglabs 2019-08-06 16:25:54 +03:00
  • 7d0bee5e51 [NOD-255] When orphan blocks arrive from netsync - don't write log unless we are in Debug Mike Zak 2019-08-06 16:06:08 +03:00
  • 347e9c6c30 [NOD-264] Got rid of txPrioItem. stasatdaglabs 2019-08-06 15:44:11 +03:00
  • d5c5ebe6a8 [NOD-264] Implemented sorting the txDescs by value. stasatdaglabs 2019-08-06 15:09:24 +03:00
  • a665e1b431 [NOD-264] Fixed bad subnetworkID in calcTxSelectionValue. stasatdaglabs 2019-08-06 14:42:04 +03:00
  • 771970dbdd [NOD-264] Implemented calcTxSelectionValue. stasatdaglabs 2019-08-05 18:57:30 +03:00
  • bfdf7a2cf2 [NOD-237] Implement transaction mass (#355) stasatdaglabs 2019-08-05 16:04:24 +03:00
  • 674ac91b5a [NOD-237] Added an overflow check to validateBlockMass. stasatdaglabs 2019-08-05 15:48:53 +03:00
  • 4339e98c6b [NOD-237] To use up less memory during testing, made the mass in the "too big" test come from pkScripts rather than input bytes. stasatdaglabs 2019-08-05 15:10:02 +03:00
  • ff327323e6 [NOD-237] Fixed sanity checks related to block size in commands. stasatdaglabs 2019-08-05 14:22:53 +03:00
  • 481fcf36c4 [NOD-237] Instead of ErrMassTooHigh, renamed ErrBlockTooBig and ErrTxTooBig. Replaced wire.MaxBlockPayload with MaxMassPerBlock. stasatdaglabs 2019-08-05 14:10:30 +03:00
  • dd8cd6aa34 [NOD-237] Renamed "size" to "byte". Made validateBlockMass exit early if validation fails. Fixed unit names in comments. In CalcTxMass, moved summing of mass to the bottom of the function. stasatdaglabs 2019-08-05 11:59:28 +03:00
  • 671a5e1e39 [NOD-237] Added comments to ValidateTxMass and CalcTxMass. stasatdaglabs 2019-08-05 10:45:12 +03:00
  • a5c019d453 [NOD-237] Fixed a comment that erroneously didn't refer to mass. stasatdaglabs 2019-08-05 10:34:10 +03:00
  • b4af886dce [NOD-237] Changed the default blockmaxmass to 10,000,000. stasatdaglabs 2019-08-05 10:30:00 +03:00
  • d941112e5f [NOD-237] Added comments describing the new constants in validate.go. stasatdaglabs 2019-08-05 10:27:14 +03:00
  • 338259369b [NOD-237] Made blockMaxMassMax not rely on MaxBlockPayload. stasatdaglabs 2019-08-05 10:23:09 +03:00
  • f657e183d7 [NOD-237] Added transaction mass validation to the mempool. stasatdaglabs 2019-08-05 10:17:11 +03:00
  • 19aa1699a4 [NOD-237] Implemented transaction mass. stasatdaglabs 2019-08-04 12:45:32 +03:00
  • 417cb6468b [NOD-256] Add error log Ori Newman 2019-08-01 15:53:17 +03:00
  • 57ff619546 [NOD-241] Fix locateBlockNodes to stop at hashStop Ori Newman 2019-08-01 18:30:18 +03:00
  • 58ffc117af [NOD-241] Change everywhere startHash to hashStart and change comments Ori Newman 2019-08-01 16:49:04 +03:00
  • 54b681460d [NOD-244] Don't validate subnetwork registry transactions when they are being registered (#354) Ori Newman 2019-08-01 12:40:01 +03:00
  • 2147d16c1f [NOD-220] When handling an INV message, made it skip tx invs that are currently being requested. (#352) stasatdaglabs 2019-08-01 12:31:40 +03:00
  • 93f1c7bb09 [NOD-244] Don't validate subnetwork registry transactions when they are being registered Ori Newman 2019-08-01 12:11:39 +03:00
  • 8e0645cbe6 [NOD-241] Remove hash stop from MsgBlockLocator and add tests to MsgBlockLocator and MsgGetBlockLocator Ori Newman 2019-08-01 11:00:20 +03:00
  • 0fd0d87627 [NOD-241] Fix tests Ori Newman 2019-07-31 18:22:32 +03:00
  • a2601635f4 [NOD-220] When handling an INV message, made it skip tx invs that are currently being requested. stasatdaglabs 2019-07-31 16:11:27 +03:00
  • 32e816e53b [NOD-241] Find exact rendezvous point Ori Newman 2019-07-29 18:22:44 +03:00
  • d1c7a8cc9a Merge remote-tracking branch 'origin/master' into nod-241-implement-lower-resolution-peer-rendezvous-point-discovery Ori Newman 2019-07-29 10:29:30 +03:00
  • 7c1cb47bd0 [NOD-249] Change WaitGroup to use channels (#350) Ori Newman 2019-07-28 18:23:26 +03:00
  • 30112f7a56 [NOD-249] Fix comments Ori Newman 2019-07-28 18:15:42 +03:00
  • c942608c0c [NOD-241] Find exact rendezvous point Ori Newman 2019-07-28 11:39:16 +03:00
  • 6acfa18d7c [NOD-220] Fixed handleSearchRawTransactions trying to get confirmations of mempool transactions, which made txgen crash on start. (#351) stasatdaglabs 2019-07-28 13:02:16 +03:00
  • f7763216a0 [NOD-241] Implement lower resolution peer rendezvous point discovery Ori Newman 2019-07-28 10:45:20 +03:00
  • 86b086446e [NOD-220] Fixed handleSearchRawTransactions trying to get confirmations of mempool transactions, which made txgen crash on start. stasatdaglabs 2019-07-25 13:34:33 +03:00
  • 859e539c86 Merge remote-tracking branch 'origin/master' into nod-241-implement-lower-resolution-peer-rendezvous-point-discovery Ori Newman 2019-07-25 12:34:14 +03:00
  • 5c58736d7d [NOD-249] Add comments and logs to waitGroup, and remove timeouts from prioritymutex_test.go Ori Newman 2019-07-25 12:16:04 +03:00
  • af888064d0 [NOD-249] Format project Ori Newman 2019-07-24 15:18:46 +03:00
  • 90fca39a87 Merge remote-tracking branch 'origin/master' into nod-249-change-waitgroup-to-use-channels Ori Newman 2019-07-24 15:17:10 +03:00
  • 17bef22ca4 [NOD-249] Change waitgroup to use channels Ori Newman 2019-07-24 15:11:22 +03:00
  • 0beaf70f6f [NOD-249] Add tests to waitgroup Ori Newman 2019-07-15 18:18:11 +03:00
  • f0a675162c [NOD-253] Use spawn instead of go (#349) Svarog 2019-07-22 12:06:13 +03:00
  • 80d1c30186 [NOD-253] Use spawn instead of go Mike Zak 2019-07-21 17:45:23 +03:00
  • 7a4deb6f18 [NOD-251] Use bluest parent anywhere validating difficulty, instead of selectedTip (#348) Svarog 2019-07-17 14:46:58 +03:00
  • 1c5598e7a2 [NOD-251] Use bluest parent anywhere validating difficulty, instead of selectedTip Mike Zak 2019-07-17 13:54:43 +03:00
  • 96842353de [NOD-250] Calculate UTXOCommitment when loading DAG + add UTXOCommitment to getBlockDagInfo (#347) Svarog 2019-07-16 16:53:28 +03:00
  • 809b9f2d78 [NOD-250] Calculate UTXOCommitment when loading DAG + add UTXOCommitment to getBlockDagInfo Mike Zak 2019-07-16 14:51:58 +03:00
  • 5ce8875ce0 [NOD-243] Optimize validateGasLimit (#346) Svarog 2019-07-16 11:07:58 +03:00
  • 941d8bfeee [NOD-243] Rephrased comment Mike Zak 2019-07-16 10:56:57 +03:00
  • 1ba3718496 Merge remote-tracking branch 'origin/master' into nod-241-implement-lower-resolution-peer-rendezvous-point-discovery Ori Newman 2019-07-15 18:18:46 +03:00
  • fdf7c19102 [NOD-243] Fix a typo Mike Zak 2019-07-15 14:21:28 +03:00
  • 034866149f [NOD-243] Optimize validateGasLimit to only remember the current subnetwork gasUsage Mike Zak 2019-07-15 10:43:25 +03:00
  • 812819e92f [NOD-248] Implement waitgroup to enable waiting while adding (#345) Ori Newman 2019-07-14 18:50:09 +03:00
  • 30d8d94331 [NOD-248] return lowPriorityMutex Ori Newman 2019-07-14 18:45:07 +03:00
  • 07e7f96e51 [NOD-248] atomically read wg.counter Ori Newman 2019-07-14 18:38:54 +03:00
  • 467589390e [NOD-248] fix waitGroup.done() error message Ori Newman 2019-07-14 17:19:10 +03:00
  • 9d034e6038 [NOD-248] Implement waitgroup to enable waiting while adding Ori Newman 2019-07-14 16:39:59 +03:00
  • 380da9a239 [NOD-241] Implement lower resolution peer rendezvous point discovery Ori Newman 2019-07-11 16:16:37 +03:00
  • 5cb536643e [NOD-236] Add secondary address to txgen (#341) Ori Newman 2019-07-14 11:26:32 +03:00