Commit Graph

  • 42c7e5e5a0 [DEV-97] Moved github.com/daglabs/btcutil into github.com/daglabs/btcd/btcutil. Stas Boutenko 2018-08-23 16:28:05 +03:00
  • 9438bd0d2e [DEV-93] Backported 'peer: ensure the version negotiation goroutine will always exit'. (#50) stasatdaglabs 2018-08-23 15:25:58 +03:00
  • e9d4a4f37d [DEV-93] Backported 'peer: ensure the version negotiation goroutine will always exit'. Original PR: https://github.com/btcsuite/btcd/pull/1228/files Stas Boutenko 2018-08-23 14:54:08 +03:00
  • 6a996c0879 [DEV-98] add ScriptNoFlags to explictly indicate for empty ScriptFlags Ori Newman 2018-08-23 15:04:19 +03:00
  • 888f37f07f [DEV-98] change isP2sh to isP2SH to comply with Go style Ori Newman 2018-08-23 14:39:14 +03:00
  • a9dbe920bc [DEV-98] remove ErrCleanStack from EVAL_FALSE Ori Newman 2018-08-23 12:52:05 +03:00
  • b4b3b5f8e9 [DEV-81] Added test to some of writePendingAndCommit error-cases Mike Zak 2018-08-22 18:05:10 +03:00
  • 89fc061d55 [DEV-98] remove debugging if Ori Newman 2018-08-22 17:56:00 +03:00
  • b422c40c21 [DEV-98] add test for NUMEQUAL for non equal numbers script_tests.json Ori Newman 2018-08-22 17:50:54 +03:00
  • 76d31fc059 [DEV-98] add sighash type to overly long signature in script_tests.json Ori Newman 2018-08-22 17:32:13 +03:00
  • aa15c0b8cd [DEV-98] rename bip16 bool to isP2sh Ori Newman 2018-08-22 17:20:05 +03:00
  • 5c9447d67a Merge remote-tracking branch 'origin/master' into dev-98-move-script-flags-from-relay-rules-to-consensus Ori Newman 2018-08-22 15:56:21 +03:00
  • 57654e69ab [DEV-98] fix multisig and remove test that assume no minimal data rule Ori Newman 2018-08-22 15:55:59 +03:00
  • 0500540a2a [DEV-98] remove flags from script_tests.json Ori Newman 2018-08-19 17:18:04 +03:00
  • 8c5c950172 [DEV-81] Removed log_test, as it is no longer necessary with the logging system re-design Mike Zak 2018-08-22 11:09:05 +03:00
  • 82fb35ed04 [DEV-75] Updated IndexManager to not use utxoViewpoints. Stas Boutenko 2018-08-20 16:32:03 +03:00
  • d17bddf5df [DEV-75] Moved GetUTXOEntry into the virtual block. Stas Boutenko 2018-08-20 16:25:34 +03:00
  • ce35aabb70 [DEV-88] Empty out btcd/blockdag/upgrade.go Ori Newman 2018-08-20 15:38:35 +03:00
  • bfbca44992 Merge remote-tracking branch 'origin/master' into dev-88-empty-upgrade Ori Newman 2018-08-20 15:24:12 +03:00
  • acaec93aa2 [DEV-88] empty blockdag/upgrade.go Ori Newman 2018-08-13 17:14:09 +03:00
  • 15fc1da9da [DEV-75] Removed fetchUtxos. Stas Boutenko 2018-08-20 12:57:44 +03:00
  • 82b45c4f55 [DEV-75] Began pruning utxoviewpoint.go. Replaced FetchUtxoEntry with a fullUTXOSet-based GetUTXOEntry. Stas Boutenko 2018-08-20 11:29:32 +03:00
  • 25d1d8cb7b Merge remote-tracking branch 'origin/master' into dev-81-database-coverage Mike Zak 2018-08-20 11:06:20 +03:00
  • ae96df3f2f [DEV-75] Fixed utxoSet loading from the wrong bucket. Stas Boutenko 2018-08-20 10:18:12 +03:00
  • 59cde5144d [DEV-75] Implemented melding the virtual UTXO diff to the database. Stas Boutenko 2018-08-19 18:23:31 +03:00
  • 940a9d11ef [DEV-81] Added test for deleting a double nested bucket Mike Zak 2018-08-19 18:17:15 +03:00
  • ef1d59ca2a [DEV-75] Made the process around adding a new block, UTXO-wise, much safer. Stas Boutenko 2018-08-19 17:38:28 +03:00
  • 25d986d753 [DEV-75] Simplified DAGState because almost all of the state in it was unnecessary. Also got rid of dbDAGState. Stas Boutenko 2018-08-16 16:13:54 +03:00
  • 4aff3f4a6b [DEV-91] add TestFetchTransaction Ori Newman 2018-08-14 12:00:44 +03:00
  • 925d226aa6 Implemented fetching the fullUTXOSet from the database. Stas Boutenko 2018-08-16 13:23:35 +03:00
  • 0bb64ce88e [DEV-75] Added blockHeight to utxoEntry creation. Stas Boutenko 2018-08-15 13:06:12 +03:00
  • 4d00d4a1e4 [DEV-75] Added isCoinbase to utxoEntry creation. Stas Boutenko 2018-08-15 12:51:52 +03:00
  • 4b78fd007d [DEV-84] validate block parents order Ori Newman 2018-08-14 16:15:12 +03:00
  • e132791188 [DEV-84] change AreEqual to look for order equality as well Ori Newman 2018-08-14 16:03:00 +03:00
  • 6475e03b93 [DEV-68] Backport 'blockchain: Backport optimize exported header access' Ori Newman 2018-08-14 15:53:48 +03:00
  • 176aad5dcd [DEV-94] Always reply with get headers Ori Newman 2018-08-14 15:48:29 +03:00
  • c11b6d9651 [DEV-75] Implemented UTXO-wrangling when adding a new block. Stas Boutenko 2018-08-14 15:34:53 +03:00
  • 04d70545e3 [DEV-91] add TestDoubleSpends Ori Newman 2018-08-13 18:08:19 +03:00
  • bc5d2c59fb [DEV-94] Always reply with get headers Ori Newman 2018-08-13 15:35:26 +03:00
  • aa92662e78 [DEV-91] Add tests for orphan tx expiration Ori Newman 2018-08-13 15:22:00 +03:00
  • a4a498c270 [DEV-98] Move script flags from relay rules to consensus Ori Newman 2018-08-13 13:19:16 +03:00
  • bd25ed4f8b Merge remote-tracking branch 'origin/master' into dev-75-update-utxo-model Stas Boutenko 2018-08-13 12:41:24 +03:00
  • e69200a3d3 Merge remote-tracking branch 'origin/master' into dev-95-backport-optimize-exported-header-access Ori Newman 2018-08-13 12:35:50 +03:00
  • d9abfa0fd3 [DEV-68] Revert block version to 1 everywhere Ori Newman 2018-08-13 12:35:20 +03:00
  • 18f16779cf [DEV-68] Backport 'blockchain: Backport optimize exported header access' Ori Newman 2018-08-13 12:23:12 +03:00
  • e1233e1511 [DEV-68] remove isBIP0030Node Ori Newman 2018-08-13 12:12:16 +03:00
  • 63524ac84d [DEV-84] validate block parents order Ori Newman 2018-08-13 11:58:26 +03:00
  • 905166e4e6 [DEV-75] Added the full UTXO set to the virtual block. Stas Boutenko 2018-08-13 11:56:35 +03:00
  • f92db9818f [DEV-75] Got rid of tips in UtxoViewpoint. Stas Boutenko 2018-08-13 11:44:42 +03:00
  • d90f7f5ccd [DEV-75] checkConnectBlock will soon not accept a utxoViewpoint, so removed the call to view.Tip() so that it could be deleted. Stas Boutenko 2018-08-13 11:37:22 +03:00
  • 6412bc2711 [DEV-91] add tests for RemoveOrphansByTag Ori Newman 2018-08-12 18:04:05 +03:00
  • ee8291cc12 Merge remote-tracking branch 'origin/master' into dev-68-revert-block-version-to-1 Ori Newman 2018-08-12 17:07:24 +03:00
  • d9cac3e20d [DEV-68] get rid of vbLegacyBlockVersion Ori Newman 2018-08-12 16:51:25 +03:00
  • 7b0ff2a60f [DEV-68] remove dersig flag Ori Newman 2018-08-12 16:45:11 +03:00
  • a5206ec12a [DEV-75] Removed a few functions in manager.go that weren't used by anything. Stas Boutenko 2018-08-12 16:27:15 +03:00
  • 56fb7f09c1 [DEV-82] Take RPC Server out of btcd package Ori Newman 2018-08-12 16:24:43 +03:00
  • b9b911c7eb [DEV-82] fix log.go license Ori Newman 2018-08-12 16:21:45 +03:00
  • 35beb35dd1 revert block version to 1 Ori Newman 2018-08-12 11:52:04 +03:00
  • 4aeeefe05d Merge branch 'dev-82-make-rpcserver-separate-package' of https://github.com/daglabs/btcd into dev-82-make-rpcserver-separate-package Ori Newman 2018-08-12 13:46:51 +03:00
  • 437d704879 [DEV-82] remove params.go and use only dagconfig.Params Ori Newman 2018-08-12 13:45:55 +03:00
  • 162cb3db97 [DEV-82] Fixed Windows-related code that failed to compile. Stas Boutenko 2018-08-12 12:50:49 +03:00
  • 0bed8504c3 [DEV-82] fix conflicts with master Ori Newman 2018-08-12 12:33:14 +03:00
  • 713b01c69d [DEV-86] Update BlockDAG.initDAGState to load the whole dag Ori Newman 2018-08-12 12:07:28 +03:00
  • f03325eabf [DEV-86] change comments Ori Newman 2018-08-12 11:55:03 +03:00
  • 3c3fefe4b6 remove old settips logic and use virtual for tips Ori Newman 2018-08-12 11:22:55 +03:00
  • 361235f015 [DEV-75] Removed fetchEntryByHash, which was no longer used. Stas Boutenko 2018-08-09 16:51:41 +03:00
  • 460216be65 [DEV-89] Convert DAGView into VirtualBlock (#41) stasatdaglabs 2018-08-09 18:21:03 +03:00
  • 378ac9bd4d [DEV-89] Fixed another chain -> DAG comment. Stas Boutenko 2018-08-09 18:15:07 +03:00
  • e01cee6d70 [DEV-89] Fixed a comment. (chain -> DAG) Stas Boutenko 2018-08-09 18:11:35 +03:00
  • 7bdc3f3ca5 [DEV-89] Rewrote virtualBlock.addTip(). Stas Boutenko 2018-08-09 17:58:19 +03:00
  • 42113f2a02 [DEV-82] fix conflicts with master Ori Newman 2018-08-09 17:57:08 +03:00
  • 31cd3b1086 [DEV-89] Fixed comments, renamed mainChainHeight to dagHeight. Stas Boutenko 2018-08-09 17:51:58 +03:00
  • 66fdb19e1d [DEV-82] separate rpcserver and server Ori Newman 2018-08-08 18:34:01 +03:00
  • 5906b0d5f1 [DEV-89] Renamed phanom_test.go to phantom_test.go. Stas Boutenko 2018-08-09 17:25:11 +03:00
  • 9e61c817af [DEV-89] Renamed tstTip to testTip. Stas Boutenko 2018-08-09 17:23:42 +03:00
  • 59254d27fd [DEV-89] Moved fastLog2Floor from dag.go to btcutil/btcmath.go. Stas Boutenko 2018-08-09 17:21:17 +03:00
  • 6db626e18c [DEV-89] Renamed the receiver param for BlockDAG from b to dag. Stas Boutenko 2018-08-09 17:16:33 +03:00
  • 4ba68ed977 [DEV-89] Removed the nil check inside initBlockNode() and amended the one place that called it with nil. Stas Boutenko 2018-08-09 17:13:07 +03:00
  • 35b27b8e67 [DEV-89] Removed the section in Manager::Init that handled rolling back indexes to the main chain if their tip is an orphaned fork. This could only happen during reorg, which no longer exists. Also removed BlockDAG::MainChainHasBlock, which was no longer used by anyone. Stas Boutenko 2018-08-09 16:38:39 +03:00
  • 269f9abf03 [DEV-89] Fixed another comment. Stas Boutenko 2018-08-09 11:18:10 +03:00
  • 5c0065bffd [DEV-89] Fixed a comment. Stas Boutenko 2018-08-09 11:15:29 +03:00
  • 443e04f798 [DEV-75] Fixed bad test, added explanations to tests. Stas Boutenko 2018-08-09 11:09:33 +03:00
  • a4ac2ce1c7 [DEV-75] Wrote tests for virtualBlock. Stas Boutenko 2018-08-08 18:33:44 +03:00
  • d344849d45 [DEV-81] Added tests to StoreBlock Mike Zak 2018-08-08 16:37:32 +03:00
  • 379da54d46 [DEV-75] Removed unnecessary nil check. Stas Boutenko 2018-08-08 16:18:26 +03:00
  • 19512d6da3 [DEV-75] Erased irrelevant tests in virtualblock_test.go. Moved dag-related tests into dag_test.go. Stas Boutenko 2018-08-08 16:01:23 +03:00
  • e12191b398 [DEV-75] Cleaned up virtualblock.go a bit. Stas Boutenko 2018-08-08 15:39:39 +03:00
  • 9d6ee0319a [DEV-81] Added test for ForEachBucket Mike Zak 2018-08-08 14:29:56 +03:00
  • 3ab6e043a6 [DEV-75] Implemented addTip(). Stas Boutenko 2018-08-08 13:28:52 +03:00
  • 801619f471 [DEV-75] Moved blockLocator() out of virtualBlock and into BlockDAG. Also removed TestLocateInventory(). Stas Boutenko 2018-08-08 12:54:39 +03:00
  • 4d7ef1446c [DEV-75] Got rid of setTip(). Stas Boutenko 2018-08-08 12:27:13 +03:00
  • 60f5af3fa6 [DEV-75] Dropped getnetworkhashps since it was reliant on height, fixed another couple of RPC commands to return nextHashes instead of a nextHash, and got rid of nodeByHeight in virtualBlock. Stas Boutenko 2018-08-08 12:22:55 +03:00
  • 6d7f1dcf6d [DEV-75] Dropped support for the RPC command getblockhash since it was getting blocks by their height. Stas Boutenko 2018-08-08 11:59:34 +03:00
  • e5abcfbe5b [DEV-75] Got rid of the part of Manager.Init() that handled "catching up" for side chains, which allowed me to get rid of BlockDAG.BlockByHeight(). Stas Boutenko 2018-08-08 11:28:53 +03:00
  • b608fbc5b5 [DEV-82] break down main to packages Ori Newman 2018-08-06 16:35:14 +03:00
  • 874431497c Merge remote-tracking branch 'origin/master' into dev-75-update-utxo-model Stas Boutenko 2018-08-08 11:15:09 +03:00
  • f6eb9edecf [DEV-74] Added infrastructure for Diff-based UTXOs (#39) stasatdaglabs 2018-08-08 11:06:09 +03:00
  • 65e578c82d Merge remote-tracking branch 'origin/master' into dev-81-database-coverage Mike Zak 2018-08-08 10:36:49 +03:00
  • 1cb397dd7f [DEV-74] Wrote additional explanations for test cases. Stas Boutenko 2018-08-07 18:38:08 +03:00
  • 89bee99149 [DEV-74] Replaced boring old-fashioned reference equality with special, fancy reference equality for maps, slices, and channels. Stas Boutenko 2018-08-07 18:16:18 +03:00