Commit Graph

14 Commits

Author SHA1 Message Date
Larry Ruane 52ac837370 New "staging" api (StageBlocks, StageTransactions, ApplyStaged)
Also remove the initial block load (all blocks will come from the
Staging APIs), but there is still more to do (this does not even
start up correctly) but darkside.proto is correct, we believe.
2020-05-21 11:48:03 -06:00
Larry Ruane 86fd87404b add darkside SetMetaState, SetBlocksURL for reorg testing 2020-05-21 11:48:03 -06:00
Larry Ruane f57e589752 update testdata/default-darkside-blocks coinbase height
Follow-on to previous commit. Without this change,
darksidewalletd detects corruption, example:

{..."CORRUPTION detected in db blocks-cache files, height 1000..."}

Steps to recreate default-darkside-blocks:
$ mkdir blocks
$ touch blocks/{1000,1001,1002,1003,1004,1005}.txt
$ go run cmd/genblocks/main.go >testdata/default-darkside-blocks
2020-04-24 16:55:47 -06:00
Taylor Hornby d55d9b1c64 Add tool for generating fake blockchains 2020-04-24 16:55:47 -06:00
Larry Ruane 1d11751e4e update README 2020-04-13 22:22:44 -06:00
Larry Ruane a4f968823f test improvements, and minor cleanups 2020-01-31 16:36:31 -07:00
Larry Ruane 36b5c588ec improve test coverage 2019-11-06 10:50:24 -07:00
Larry Ruane da2231f423 add missing tests, empty (stubs) for now 2019-09-25 09:31:49 -06:00
Jack Grigg bb62739502 Test against the first 20 mainnet blocks 2019-05-22 12:04:02 -04:00
Jack Grigg 7451d85d15
parser: Add PrevHash field to CompactBlocks 2019-05-04 12:21:01 +01:00
Jack Grigg ede5e7b7ec
walletrpc: Update CompactBlock protobuf with prevHash field 2019-05-04 12:21:01 +01:00
George Tankersley 6d28a409bc parser: replace genesis "blockheight" with zero 2019-02-25 14:20:44 -05:00
George Tankersley 7d7390eeae parser: include block time in compact encodings 2018-12-17 18:51:30 -05:00
George Tankersley abca4335ec tests: unify testdata directory 2018-12-14 19:19:12 -05:00