Commit Graph

  • c486362981 Merge remote-tracking branch 'origin/master' into dev-81-database-coverage Mike Zak 2018-09-12 14:18:13 +03:00
  • 41edb19f89 [DEV-115] add config log Ori Newman 2018-09-09 15:05:47 +03:00
  • f71cd19e19 [DEV-105] add unit tests Ori Newman 2018-09-09 13:11:18 +03:00
  • 79e4f0d8c3 [DEV-105] change checkPoolDoubleSpend to check utxodiff Ori Newman 2018-09-08 06:09:37 +03:00
  • 988aafea31 [DEV-115] fix mistype mainCfg -> cfg in config/config.go Ori Newman 2018-09-06 17:52:29 +03:00
  • 61ec69f1f4 [DEV-105] add comments and add blockdag/test_utils_test.go Ori Newman 2018-09-06 16:45:53 +03:00
  • a4074612cd [DEV-105] move DagSetup to test_utils.go Ori Newman 2018-09-06 11:52:49 +03:00
  • cc9b06b837 [DEV-105] remove utxoview type Ori Newman 2018-09-06 11:12:12 +03:00
  • 14d5198b0a [DEV-105] fix tests to use utxoset Ori Newman 2018-09-06 11:10:45 +03:00
  • 5dd82ed505 [DEV-105] get rid of utxoview Ori Newman 2018-09-04 17:54:03 +03:00
  • c327d9774d [DEV-105] use utxodiff in mempool instead of utxoview Ori Newman 2018-09-04 17:04:55 +03:00
  • f137442c79 Merge branch 'master' of github.com:daglabs/btcd Mike Zak 2018-09-04 12:00:29 +03:00
  • c1edbf7f20 Update Gopkg.lock to latest versions of dependencies Mike Zak 2018-09-04 12:00:15 +03:00
  • 346b38cd15 Merge remote-tracking branch 'origin/master' into dev-91-increase-mempool-coverage Ori Newman 2018-09-03 16:44:59 +03:00
  • 86feb42cc4 [DEV-104] Disable chained txs (#57) Ori Newman 2018-09-03 16:57:23 +03:00
  • a181537695 [DEV-104] rename node -> containgNode in diffFromTx Ori Newman 2018-09-03 16:39:36 +03:00
  • 24a712ba70 [DEV-104] reorder variables in TestApplyUTXOChanges Ori Newman 2018-09-03 14:33:03 +03:00
  • abbb60f6c3 [DEV-104] add TestDiffFromTx Ori Newman 2018-09-03 12:04:49 +03:00
  • b2b61f5a7c [DEV-104] remove isCompatible Ori Newman 2018-09-02 18:08:28 +03:00
  • 8eb1f19625 [DEV-104] add TestApplyUTXOChanges Ori Newman 2018-09-02 16:01:50 +03:00
  • 4838fe757f [DEV-104] Disable chained transactions Ori Newman 2018-08-30 17:47:26 +03:00
  • 37cd482db3 [DEV-75] Update UTXO model to work with Diffs (#53) stasatdaglabs 2018-08-30 16:00:03 +03:00
  • f1d4bf31c1 [DEV-75] Pruned unnecessary variable. Stas Boutenko 2018-08-30 15:58:12 +03:00
  • cfe76fcee2 [DEV-91] add TestRemoveTransaction Ori Newman 2018-08-30 15:39:51 +03:00
  • 1a4dbe348e [DEV-75] Added precalculating the amount of transactions inside a new block's blue set. Stas Boutenko 2018-08-30 15:09:19 +03:00
  • 818e6c9343 [DEV-75] Renamed createdProvisionalNode to newProvisionalNode. Stas Boutenko 2018-08-30 13:21:07 +03:00
  • be5a2519a2 [DEV-75] In createProvisionalNode, changed withParents to withRelatives to avoid certain kinds of attacks. Stas Boutenko 2018-08-30 13:19:27 +03:00
  • f625dccc3a [DEV-75] Replaced DAGState with a slice of DAG tip hashes. Stas Boutenko 2018-08-30 13:16:26 +03:00
  • 5a151190d7 [DEV-75] Fixed weird English. Stas Boutenko 2018-08-30 12:56:07 +03:00
  • c295ecad25 Merge remote-tracking branch 'origin/master' into dev-75-update-utxo-model Stas Boutenko 2018-08-30 12:53:25 +03:00
  • 9bb40e1085 [DEV-107] Disallow situation where a parent is also an ancestor of another parent Ori Newman 2018-08-30 11:20:29 +03:00
  • 476ee34073 [DEV-107] remove blk_3C from TestCheckConnectBlockTemplate Ori Newman 2018-08-30 11:16:49 +03:00
  • e5c921421d [DEV-107] fix comment that explains block 3c test Ori Newman 2018-08-30 11:14:37 +03:00
  • dd00c7e50e [DEV-107] remove TestProcessBlock Ori Newman 2018-08-30 11:12:25 +03:00
  • 393065f002 [DEV-75] Added descriptive error messages to callers of applyUTXOChanges. Stas Boutenko 2018-08-29 18:23:59 +03:00
  • 347864d193 [DEV-75] Fixed a couple of bad comments. Stas Boutenko 2018-08-29 18:14:44 +03:00
  • 9fece391e8 [DEV-75] Made most applyUTXOChanges subfunctions be methods on provisionalNode. Stas Boutenko 2018-08-29 18:11:44 +03:00
  • 1294e060a2 [DEV-75] Changed createProvisionalNode to accept a boolean "withParents" instead of relying on the caller to supply the node's parents or an empty set. Stas Boutenko 2018-08-29 18:00:43 +03:00
  • 4fd42409a2 [DEV-107] break validateParents error to 2 lines Ori Newman 2018-08-29 17:59:42 +03:00
  • e1a91e21d4 [DEV-91] test MaxOrphanTxs=0 Ori Newman 2018-08-29 17:55:44 +03:00
  • 2286282e90 [DEV-75] Replaced allProvisionalNodes with provisionalNodeSet, an object that holds provisionalNodes for this particular call to applyUTXOChanges. Stas Boutenko 2018-08-29 17:48:09 +03:00
  • c5a47da7b8 Merge remote-tracking branch 'origin/master' into dev-91-increase-mempool-coverage Ori Newman 2018-08-29 17:33:24 +03:00
  • baaee6c764 [DEV-75] Renamed connectUTXO to applyUTXOChanges. Stas Boutenko 2018-08-29 17:31:14 +03:00
  • 5f527d65e3 [DEV-75] Removed a couple of unnecessary calls to toProvisionalNode. Stas Boutenko 2018-08-29 17:10:27 +03:00
  • 806394ca2b [DEV-75] Updated the comment explaining why we're creating provisionalNodes. Stas Boutenko 2018-08-29 17:06:29 +03:00
  • 82bff5a724 [DEV-75] Updated the comment for connectUTXO. Stas Boutenko 2018-08-29 17:03:10 +03:00
  • ea57607443 [DEV-75] Made all the connectUTXO subfunctions not BlockDAG methods. Stas Boutenko 2018-08-29 16:49:19 +03:00
  • 6d1fdd9c7a [DEV-75] Reworded the comment for commit(). Stas Boutenko 2018-08-29 16:33:49 +03:00
  • 9675b07463 [DEV-75] In pastUTXO, first fetch transactions from the database and only then add them. Stas Boutenko 2018-08-29 16:32:03 +03:00
  • 42c9d82f89 [DEV-107] move validateParents to checkBlockContext Ori Newman 2018-08-29 16:14:11 +03:00
  • 0ee6b2e4a0 [DEV-75] Removed another superfluous variable. Stas Boutenko 2018-08-29 16:21:39 +03:00
  • 65c4a72fb4 [DEV-75] Combined connectBlockToParents with updateParentsDiffs. Stas Boutenko 2018-08-29 16:18:14 +03:00
  • 916ad4b933 [DEV-75] Removed superfluous variables. Stas Boutenko 2018-08-29 16:11:11 +03:00
  • 19added412 [DEV-75] Renamed GetVirtualBlock to VirtualBlock. Stas Boutenko 2018-08-29 16:08:18 +03:00
  • 6590947678 [DEV-107] Add comment for validateParents Ori Newman 2018-08-29 15:58:32 +03:00
  • 79e9399932 Added a comment that clarifies that the index is not initialized before initDAGState is called. Stas Boutenko 2018-08-29 15:57:05 +03:00
  • 8c691d6a59 [DEV-107] Disallow situation where a parent is also an ancestor of another parent Ori Newman 2018-08-29 15:18:57 +03:00
  • 5683088629 [DEV-75] Changed the UTXO bucket version to 1. Stas Boutenko 2018-08-29 15:46:42 +03:00
  • f88d5d1e2b [DEV-75] Changed newUTXOEntry to use an object initializer. Stas Boutenko 2018-08-29 15:44:50 +03:00
  • 660e01f721 [DEV-75] Recreated add/remove/contains functions for utxoCollection. Stas Boutenko 2018-08-29 15:34:31 +03:00
  • e149a50f22 [DEV-101] Renamed server/rpcserver to server/rpc. (#55) stasatdaglabs 2018-08-29 15:20:42 +03:00
  • ef269cc429 [DEV-75] Removed UTXO set logs. Stas Boutenko 2018-08-29 15:14:19 +03:00
  • 5445eb5c3d [DEV-75] Used TipHashes instead of tips().hashes(), fixed comments in a few places, and brought back an error return that I erroneously removed. Stas Boutenko 2018-08-29 12:56:30 +03:00
  • 0a083fff2e [DEV-101] Renamed server/rpcserver to server/rpc. Stas Boutenko 2018-08-29 10:40:29 +03:00
  • b2d3ec69d8
    [DEV-102] Fix logging in database drivers stasatdaglabs 2018-08-29 10:28:46 +03:00
  • 25d5ade7a8 [DEV-102] remove UseLogger from ffldb Ori Newman 2018-08-28 10:47:46 +03:00
  • 89c7aac0b3 Merge remote-tracking branch 'origin/master' into dev-75-update-utxo-model Stas Boutenko 2018-08-27 18:52:10 +03:00
  • 603afa7353 [DEV-75] Wrote tests for errors in verifyAndBuildUTXO. Stas Boutenko 2018-08-27 18:42:46 +03:00
  • 050fb08c29 [DEV-75] Improved testErrorThroughPatching. Stas Boutenko 2018-08-27 18:27:03 +03:00
  • 8e005bd273 [DEV-75] Wrote tests for errors in restoreUTXO. Stas Boutenko 2018-08-27 18:01:02 +03:00
  • 1f18ed4d0f [DEV-75] Wrote tests for errors in pastUTXO. Stas Boutenko 2018-08-27 17:55:53 +03:00
  • 205e729314 [DEV-75] Removed the test for genesis in pastUTXO, since it can never happen. Stas Boutenko 2018-08-27 17:41:01 +03:00
  • 617530dd8f
    [DEV-76] handleGetBlockTemplateLongPoll to use tips instead of tip (#52) Ori Newman 2018-08-27 17:32:53 +03:00
  • c8fe1ef6e1 [DEV-76] add function prefix to errors Ori Newman 2018-08-27 17:32:16 +03:00
  • 664bdb0f65 [DEV-76] rename templateID -> longPollID Ori Newman 2018-08-27 17:31:35 +03:00
  • e763b74a97 [DEV-91] test unparsable scripts Ori Newman 2018-08-27 17:11:46 +03:00
  • 322d23ede1 [DEV-76] use strings.Join for JoinHashesStrings Ori Newman 2018-08-27 17:14:40 +03:00
  • 020a1e0315 Merge remote-tracking branch 'origin/master' into dev-91-increase-mempool-coverage Ori Newman 2018-08-27 16:03:13 +03:00
  • 2b73f70623 [DEV-76] move concatHashesToString to daghash package as JoinHashesStrings Ori Newman 2018-08-27 15:39:24 +03:00
  • e7f943d2fb [DEV-75] Renamed nodeDiff to provisionalNode. Added a bunch of comments. Stas Boutenko 2018-08-27 12:35:55 +03:00
  • 152334527c [DEV-76] handleGetBlockTemplateLongPoll to use tips instead of tip Ori Newman 2018-08-26 17:58:23 +03:00
  • 1fbc94ff9b [DEV-75] Removed IsModified from UTXOView, which was not used anywhere. Stas Boutenko 2018-08-26 18:22:45 +03:00
  • 9ea069c44d [DEV-75] Another Utxo -> UTXO rename. Stas Boutenko 2018-08-26 17:54:34 +03:00
  • 01f964f2a5 [DEV-75] Renamed UtxoXxx to UTXOXxx. Removed a bunch of methods that were no longer used by anything. Stas Boutenko 2018-08-26 17:48:57 +03:00
  • fe8357fe00 [DEV-75] Moved some STXO-related validation logic out of connectToDAG and into checkConnectBlock. Stas Boutenko 2018-08-26 15:50:19 +03:00
  • 8f370c8481 [DEV-81] Update references from btcutil to btcd/util Mike Zak 2018-08-26 15:19:18 +03:00
  • de8bbfa235 [DEV-75] Got rid of the UTXO spend journal, which wasn't used anywhere. Stas Boutenko 2018-08-26 15:39:38 +03:00
  • 8e196f931c [DEV-75] Fixed some bad login in restoreUTXO involving nodeDiffs. Stas Boutenko 2018-08-26 15:24:41 +03:00
  • 391aec89a2 Merge remote-tracking branch 'origin/master' into dev-81-database-coverage Mike Zak 2018-08-26 10:23:06 +03:00
  • b4b71eec01 [DEV-98] Move script flags from relay rules to consensus (#49) Ori Newman 2018-08-23 17:45:49 +03:00
  • 94eae81b9f Merge branch 'master' into dev-75-update-utxo-model Stas Boutenko 2018-08-23 17:34:04 +03:00
  • 9a5d8a95b3 [DEV-98] rename PUBKEYTYPE -> PUBKEYFORMAT Ori Newman 2018-08-23 17:22:43 +03:00
  • 54db7ecf24 [DEV-98] rename btcutil -> util Ori Newman 2018-08-23 17:18:22 +03:00
  • a3edaf1bdc [DEV-91] rename btcutil -> util Ori Newman 2018-08-23 17:16:48 +03:00
  • b4df714baa [DEV-98] rename ErrPubKeyType -> ErrPubKeyFormat Ori Newman 2018-08-23 17:12:43 +03:00
  • e8d87d8a2e [DEV-91] added a test for MinHighPriority Ori Newman 2018-08-23 17:02:47 +03:00
  • d7553c52af Merge remote-tracking branch 'origin/master' into dev-81-database-coverage Mike Zak 2018-08-23 16:54:48 +03:00
  • c65d9aa168 [DEV-97] Combine btcd and btcutil repositories (#51) stasatdaglabs 2018-08-23 16:54:16 +03:00
  • bbbb03f2a8 [DEV-97] Renamed btcutil to util. Stas Boutenko 2018-08-23 16:39:08 +03:00
  • c9b6153a71 [DEV-97] Updated Gopkg.toml to no longer refer to btcutil. Stas Boutenko 2018-08-23 16:33:08 +03:00