Commit Graph

  • 9164dfa82b [NOD-41] Some methods of dag that could have been just functions converted to function Mike Zak 2019-03-05 13:47:58 +02:00
  • f050176805 Merge branch 'master' into nod-25-add-PayloadHash-to-wire-block Evgeny Khirin 2019-03-05 13:45:53 +02:00
  • 45cffb4f69 Dev 363 add subnets to dns seeder (#190) Evgeny Khirin 2019-03-05 13:11:10 +02:00
  • 877c1492a5 [DEV-363] Fixed comment Evgeny Khirin 2019-03-05 12:56:06 +02:00
  • ed20955c33 [DEV-363] Removed IsDNSSeederPeer flag Evgeny Khirin 2019-03-05 12:50:45 +02:00
  • 5593b27b64 [NOD-25] Intermediate commit Evgeny Khirin 2019-03-05 12:44:33 +02:00
  • c99a24121c [NOD-41] Fix in a comment Mike Zak 2019-03-05 11:27:07 +02:00
  • 5f5aec0c44 [NOD-41] call dag.checkFinalityRulesAndGetFinalityPoint(node) even if fastAdd Mike Zak 2019-03-05 11:26:20 +02:00
  • 5528a9e7b7 [NOD-41] Moved update of finality point to after block was validated + some minor style fixes Mike Zak 2019-03-05 10:54:47 +02:00
  • f6afd1be85 [DEV-363] Update NeedMoreAddresses function to take into account full peers + small refactoring Evgeny Khirin 2019-03-04 12:23:55 +02:00
  • fdbbdcc60c [DEV-379] Extracted method in applyUTXOChanges subroutines Mike Zak 2019-03-03 13:08:21 +02:00
  • b7380d75b4 [DEV-363] Small refactoring of p2p changes Evgeny Khirin 2019-02-28 16:16:57 +02:00
  • 021a77c6ff [DEV-363] Added tests and refactored Evgeny Khirin 2019-02-27 18:21:38 +02:00
  • 0bee53862f [DEV-363] Reverted protocol changes and fixed tests Evgeny Khirin 2019-02-27 13:16:41 +02:00
  • 65174513dc [DEV-363] Reverted protocol changes Evgeny Khirin 2019-02-27 11:29:39 +02:00
  • a3f2965e95 [DEV-379] Minor styling changes Mike Zak 2019-02-27 10:53:21 +02:00
  • 48c08db4d1 [DEV-363] Reverted protocol changes Evgeny Khirin 2019-02-26 18:35:17 +02:00
  • c8cc1ee2ea Merge branch 'master' into dev-363-add-subnets-to-dns-seeder Evgeny Khirin 2019-02-25 17:04:44 +02:00
  • d1fa5772b1 [DEV-363] Finished BTCD part of DNS seeder Evgeny Khirin 2019-02-25 16:53:58 +02:00
  • 4b463bb754 [DEV-379] Refactored the checking of finality point Mike Zak 2019-02-24 17:31:50 +02:00
  • d95b52c3d4 [DEV-379] Move all logic to save new block data to separate method Mike Zak 2019-02-24 17:29:34 +02:00
  • 592164adb4 [DEV-379] Simplify the condition according to which we increment blockCount Mike Zak 2019-02-24 16:54:56 +02:00
  • 93ffbac738 [DEV-379] Refactored checkBlockContext: Mainly extracted methods and re-organized variable use to minimize clutter Mike Zak 2019-02-24 16:06:08 +02:00
  • 58b1b01c3f Dev 378 optimize calculate fee (#189) Svarog 2019-02-24 11:52:06 +02:00
  • 70d62eef4f [DEV-378] Remove redundant .ToString() Mike Zak 2019-02-24 11:46:47 +02:00
  • ec8c0f4757 [DEV-378] Some comment fixes Mike Zak 2019-02-24 11:45:52 +02:00
  • 75687fc09a [DEV-378] Renamed acceptedTxsData and related types and vars to txsAcceptanceData Mike Zak 2019-02-24 10:25:25 +02:00
  • ee9ad5012a [DEV-378] Recovered fmt string changes lost in merge Mike Zak 2019-02-21 18:26:11 +02:00
  • e3cb2c5570 [DEV-378] Re-organized fee functions, removed redundant functions and constants, and revised a few comments Mike Zak 2019-02-21 18:16:06 +02:00
  • 3a72aa4af6 [DEV-378] Fixed a few typos and made some vars consts Mike Zak 2019-02-21 18:06:37 +02:00
  • 7c2ee03489 Merge remote-tracking branch 'origin/master' into dev-378-optimize-calculate-fee Mike Zak 2019-02-21 14:19:35 +02:00
  • 16b786471b [DEV-378] txindex: if including block is the new block - don't fetch id from DB Mike Zak 2019-02-21 14:02:24 +02:00
  • 5323e0df65 [DEV-378] use IsEqual instead of == when comparing TxHash Mike Zak 2019-02-21 13:16:51 +02:00
  • 990953f77a [DEV-378] Calculate fee even if fastAdd, to save feeData Mike Zak 2019-02-21 11:09:16 +02:00
  • 32d81d8598 [DEV-378] Multiple bugfixes in tx fee calculation Mike Zak 2019-02-20 16:23:39 +02:00
  • d18e2ba7a2 [DEV-378] Length of compactFeeData should be determined by specific method, not Mike Zak 2019-02-20 14:49:33 +02:00
  • 6cb2dfa4ba [DEV-378] Off-by-one error Mike Zak 2019-02-20 14:43:42 +02:00
  • 3ecf3743f8 [DEV-378] For genesis block: Return empty AcceptedTxsData instead of nil Mike Zak 2019-02-20 14:41:56 +02:00
  • 0e9377eed0 [DEV-378] Fix TxIndex after changing the structure of AcceptedTxsData Mike Zak 2019-02-20 14:36:01 +02:00
  • 41647fd488 [DEV-376] Changed any instance of %v in format strings with a more specific format token (#188) Svarog 2019-02-20 14:02:52 +02:00
  • 2df232618b [DEV-376] fixed mruinvmap_test to expect the correct behaviour Mike Zak 2019-02-20 13:28:11 +02:00
  • b36e3c6b39 [DEV-376] Some more fixes in format strings Mike Zak 2019-02-20 13:18:03 +02:00
  • dfd4fedc11 [DEV-378] Finished the code that calculates fees for blocks Mike Zak 2019-02-19 17:24:29 +02:00
  • 4811bccc31 [DEV-376] use %s for util.Amount, to invoke .String() Mike Zak 2019-02-20 11:10:21 +02:00
  • c49bf52667 [DEV-376] Added fmt.Sprintf where it was missing Mike Zak 2019-02-19 17:33:32 +02:00
  • de7833d527 [DEV-376] Fixed some more wrong formatting strings + removed redundant cast Mike Zak 2019-02-19 17:29:55 +02:00
  • 7481042de5 [DEV-378] Restructured parameters to buildFeeTransaction and related entities Mike Zak 2019-02-19 11:24:32 +02:00
  • 28e5d0ab13 [DEV-378] Converted MsgTx.TxHash() to pointer to hash and not hash Mike Zak 2019-02-19 11:04:04 +02:00
  • ce7a76273c [DEV-378] Renamed feeAccumulator to compactFeeData, and all related entities accordingly Mike Zak 2019-02-18 15:03:01 +02:00
  • 775db3926e [DEV-378] Added logic to create and store fee data when validating a block Mike Zak 2019-02-18 14:22:30 +02:00
  • 72785d58d2 [DEV-378] Added feeAccumulator structures Mike Zak 2019-02-17 16:31:43 +02:00
  • 50d0387496 Merge remote-tracking branch 'origin/master' into dev-376-typed-formatting Mike Zak 2019-02-17 13:50:52 +02:00
  • 930eb9f68c [DEV-376] Changed any instance of %v in format strings with a more specific format token Mike Zak 2019-02-17 12:44:08 +02:00
  • b9ffba5d92 [DEV-363] Prepare BTCD to work with DNS seeder Evgeny Khirin 2019-02-14 19:13:51 +02:00
  • f615298453 [DEV-259] Allow to spend genesis coinbase, and use ProcessBlock to ad… (#187) Ori Newman 2019-02-14 18:20:49 +02:00
  • b61cc5ce04 [DEV-259] add genesisPastUTXO as separate function Ori Newman 2019-02-14 18:15:44 +02:00
  • f06513aad7 [DEV-369] Revert CheckTransactionSanity and CheckBlockSanity + move all Gas logic somewhere else (#185) Ori Newman 2019-02-14 18:05:11 +02:00
  • 8bb7b0ef3f [DEV-369] add comments to TestGasLimit Ori Newman 2019-02-14 17:59:45 +02:00
  • 6c024e3d6d [DEV-369] Handle zero coinbase output in PrepareBlockForTest Ori Newman 2019-02-14 17:35:19 +02:00
  • 4554cbc9ec [DEV-259] fix IsCurrent to check genesis timestamp if needed Ori Newman 2019-02-14 17:27:41 +02:00
  • b74dc9dfd1 [DEV-316] Update JSON-RPC API to include new transaction fields (#186) Ori Newman 2019-02-14 15:19:44 +02:00
  • e53f7890d8 [DEV-316] Add txAcceptedVerbose test with subnetwork, gas and paylaod Ori Newman 2019-02-14 14:03:11 +02:00
  • 284bd00e1c [DEV-259] Allow to spend genesis coinbase, and use ProcessBlock to add genesis to the DAG like any other block Ori Newman 2019-02-13 18:38:58 +02:00
  • a241933744 [DEV-316] Fix tests Ori Newman 2019-02-13 15:16:18 +02:00
  • 4d7f760a8f [DEV-316] Update JSON-RPC API to include new transaction fields Ori Newman 2019-02-12 17:57:32 +02:00
  • 9ae3276d32 Merge remote-tracking branch 'origin/master' into dev-369-move-gas-logic-away-from-checkblocksanity Ori Newman 2019-02-12 16:20:23 +02:00
  • d5f393872c [DEV-374] Fix chained transaction check on NewBlockTemplate (#184) Ori Newman 2019-02-12 16:19:30 +02:00
  • 6c0f21ec32 [DEV-374] remove addTxToBlock Ori Newman 2019-02-12 16:13:51 +02:00
  • 590e6f877a [DEV-369] Add TestGasLimit Ori Newman 2019-02-12 15:52:42 +02:00
  • 1aa88ebc92 [DEV-374] fix chained transaction check on NewBlockTemplate Ori Newman 2019-02-12 15:52:10 +02:00
  • df04967ffc Merge remote-tracking branch 'origin/master' into dev-369-move-gas-logic-away-from-checkblocksanity Ori Newman 2019-02-12 14:53:34 +02:00
  • fd5ca4ac1a [DEV-360] Allow only 1 wire protocol version (#183) Ori Newman 2019-02-12 13:16:35 +02:00
  • 7150af20a2 [DEV-369] Revert CheckTransactionSanity and CheckBlockSanity + move all Gas logic somewhere else Ori Newman 2019-02-12 12:38:08 +02:00
  • 7c36349646 [DEV-360] Allow only 1 wire protocol version Ori Newman 2019-02-11 19:02:14 +02:00
  • 0503a07a24 [DEV-363] Added testnet seeders Evgeny Khirin 2019-02-11 17:55:44 +02:00
  • 0aa7c430e0 Dev 364 implement the dag fee structure (#181) Ori Newman 2019-02-11 17:33:55 +02:00
  • c9d94027bd [DEV-364] Use constants instead of inline numbers Ori Newman 2019-02-11 16:11:50 +02:00
  • d69ef8f67d Merge remote-tracking branch 'origin/master' into dev-364-implement-the-dag-fee-structure Ori Newman 2019-02-11 16:02:21 +02:00
  • 3a9c06afd2 [DEV-371] Allow zero outputs for transactions (#182) Ori Newman 2019-02-11 12:42:26 +02:00
  • 35a3dbdfdb [DEV-371] Allow zero outputs for transactions Ori Newman 2019-02-11 12:09:28 +02:00
  • 1660e9cda0 Merge remote-tracking branch 'origin/master' into dev-364-implement-the-dag-fee-structure Ori Newman 2019-02-11 11:59:24 +02:00
  • 5e67fd94fd [DEV-364] fix tests Ori Newman 2019-02-04 15:25:34 +02:00
  • 3eeff11231 [DEV-317] Update JSON-RPC API call GetBlock to allow filtering by SubNetworkID (#180) Evgeny Khirin 2019-02-05 16:38:21 +02:00
  • 48560df2b3 [DEV-317] Changed comments, messages and refactored code Evgeny Khirin 2019-02-05 13:28:11 +02:00
  • 434cb8125a [DEV-317] Update JSON-RPC API call GetBlock to allow filtering by SubNetworkID Evgeny Khirin 2019-02-04 18:50:47 +02:00
  • c2d0ee27e5 [DEV-364] change fee transaction to be one tx per block rather than one tx for each blue Ori Newman 2019-02-03 16:04:56 +02:00
  • 5ebe8875ac [DEV-364] add TestValidateFeeTransactions Ori Newman 2019-01-31 18:17:25 +02:00
  • a7a88f1b83 [DEV-364] force maximum sequence for fee transactions Ori Newman 2019-01-31 17:39:14 +02:00
  • 383c0b7aef [DEV-364] fix calculateFees Ori Newman 2019-01-31 15:56:34 +02:00
  • 7823979621 [DEV-364] Make getParentsFeeData a separate function Ori Newman 2019-01-30 18:24:53 +02:00
  • 8a5777012d [DEV-364] put getTXO as separate function Ori Newman 2019-01-30 18:17:50 +02:00
  • 4db9bffb5f [DEV-364] Add comments Ori Newman 2019-01-30 17:35:23 +02:00
  • 2654d45d02 [DEV-364] apply coinbase rules to fee transaction is some cases Ori Newman 2019-01-30 15:59:25 +02:00
  • f9804777d7 [DEV-364] make NextBlockFeeTransactions for creating block templates Ori Newman 2019-01-29 19:15:49 +02:00
  • 0cf773ffd5 Merge remote-tracking branch 'origin/master' into dev-364-implement-the-dag-fee-structure Ori Newman 2019-01-29 18:44:55 +02:00
  • 4867ab7fc4 [DEV-364] Add fee transactions validation Ori Newman 2019-01-29 18:44:34 +02:00
  • 0bc7a11551 Dev 341 increase mining test coverage (#178) Ori Newman 2019-01-29 11:16:40 +02:00
  • b0151ed469 [DEV-341] Add comment to TestNewBlockTemplate Ori Newman 2019-01-28 16:24:58 +02:00
  • 1e09d470f7 [DEV-336] Update peer package to accommodate partial nodes (#176) Ori Newman 2019-01-28 13:55:58 +02:00
  • a734163135 Merge remote-tracking branch 'origin/master' into dev-336-update-peer-package-to-accomodate-partial-nodes Ori Newman 2019-01-28 13:11:30 +02:00