Commit Graph

22 Commits

Author SHA1 Message Date
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
Dimitris Apostolou b450634ab7 Fix typos 2020-12-21 13:03:41 -07:00
Larry Ruane faca1ecbef
increase the 252 per-block transaction limit (#273) 2020-06-03 18:58:26 -06:00
Larry Ruane c2a6306ce5 Misc cleanups and fixes
- improved corruption recovery (don't back up by just 1 block at a time)
- move darksidewallet gRPCs to their own .proto file
- this force-push removes my commits for reorg testing using SetState
2020-04-24 16:55:47 -06:00
Larry Ruane 1dc439080b add COPYING and copyright lines 2020-03-12 12:02:55 -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
George Tankersley 6d28a409bc parser: replace genesis "blockheight" with zero 2019-02-25 14:20:44 -05:00
George Tankersley abca4335ec tests: unify testdata directory 2018-12-14 19:19:12 -05:00
George Tankersley 38d61b509c rpc: update for API and protobuf changes 2018-12-04 18:22:06 -05:00
George Tankersley 0dee0b425e storage: begin implementing sqlite3 storage 2018-11-19 18:20:59 -05:00
George Tankersley 7cc7095a81 parser: implement Compact Block encoding from ZIP307 2018-11-18 01:29:27 +00:00
George Tankersley 58e5f3e78b parser: implement whole-block parsing and publicize constructors 2018-09-28 00:52:40 +00:00
George Tankersley 273de97b00 parser: split block header parsing into its own files 2018-09-19 22:48:33 +00:00
George Tankersley bb60ca32bf parser: give up on doing anything clever 2018-09-19 22:45:40 +00:00
George Tankersley 35638b3900 parser: generalize API for decoding serializable types 2018-09-17 13:45:21 -04:00
George Tankersley c947b00d36 parser: clarify difference between block hash and block header hash 2018-09-14 15:02:47 -04:00
George Tankersley e69779195f parser: tidy up the BlockHeader API 2018-09-13 12:19:25 -04:00
George Tankersley 5d3e0308a8 parser: sufficiently test block header serialization 2018-09-13 11:51:55 -04:00
George Tankersley 69f376515c parser: implement container-level parsing of block headers 2018-09-03 23:45:49 -04:00