Conrado Gouvea
|
91b1fcb37b
|
ZIP-221: Validate chain history commitments in the non-finalized state (#2301)
* sketch of implementation
* refined implementation; still incomplete
* update librustzcash, change zcash_history to work with it
* simplified code per review; renamed MMR to HistoryTree
* expand HistoryTree implementation
* handle and propagate errors
* simplify check.rs tracing
* add suggested TODO
* add HistoryTree::prune
* fix bug in pruning
* fix compilation of tests; still need to make them pass
* Apply suggestions from code review
Co-authored-by: teor <teor@riseup.net>
* Apply suggestions from code review
Co-authored-by: teor <teor@riseup.net>
* improvements from code review
* improve check.rs comments and variable names
* fix HistoryTree which should use BTreeMap and not HashMap; fix non_finalized_state prop tests
* fix finalized_state proptest
* fix non_finalized_state tests by setting the correct commitments
* renamed mmr.rs to history_tree.rs
* Add HistoryTree struct
* expand non_finalized_state protest
* fix typo
* Add HistoryTree struct
* Update zebra-chain/src/primitives/zcash_history.rs
Co-authored-by: Deirdre Connolly <deirdre@zfnd.org>
* fix formatting
* Apply suggestions from code review
Co-authored-by: Deirdre Connolly <deirdre@zfnd.org>
* history_tree.rs: fixes from code review
* fixes to work with updated HistoryTree
* Improvements from code review
* Add Debug implementations to allow comparing Chains with proptest_assert_eq
Co-authored-by: teor <teor@riseup.net>
Co-authored-by: Deirdre Connolly <deirdre@zfnd.org>
|
2021-07-07 10:29:08 +10:00 |
teor
|
0e1f330720
|
Use error message derives in zebra-state
Rather than displaydoc.
|
2020-12-04 10:44:36 +10:00 |
teor
|
207ded6889
|
Add error context for contextual validation
|
2020-12-04 10:44:36 +10:00 |
teor
|
23e07a94cf
|
Implement the block header time consensus rules
|
2020-12-04 10:44:36 +10:00 |
teor
|
678e6ad090
|
Implement difficulty_threshold_is_valid
|
2020-12-01 07:27:30 +10:00 |
Jane Lusby
|
8ba9d0114b
|
Add consensus critical check for sequential heights (#1291)
* Add consensus critical check for sequential heights
* document the check module
* Add unit tests for consensus checks
|
2020-11-13 14:26:16 +10:00 |
Jane Lusby
|
b3634fa3e7
|
Make the state service use broadcast channels (#1137)
And refactor error handling
|
2020-10-09 18:37:24 +10:00 |