Commit Graph

17 Commits

Author SHA1 Message Date
Larry Ruane 26df6f0992 add V5 transaction (orchard) parsing test 2022-04-12 00:05:29 -06:00
Larry Ruane ddf3781a60 parse V5 (nu5) transactions
TODO:
- store, instead of just skip over, nu5 transaction fields
- add relevant nu5 fields to CompactBlock
- restore disabled V4 unit tests
- add V5 test vectors to unit tests

The reason most of the V4 transaction and block unit tests are removed
is that they used V3 transactions, which lightwalletd never sees in
production, since lightwalletd starts at Sapling activation (which has
V4 transactions). So these tests were always wrong, in a way. This
commit simplifies the parsing code by removing support for V3 (since it
was never needed). The tests need to be updated to V4, but we'll do
that in a later PR.
2021-10-24 13:30:35 -06:00
Larry Ruane 33e7312218 add zcashd versioning to GetLightdInfo result 2020-12-03 22:55:08 -07:00
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