Zebra/zebra-state/src
teor d140bb94c9
Test that non-finalized block rejections reset the state (#2495)
* Document Ord for Chain and Proof of Work

* Create a NonFinalizedState::new method

And add some debug and clone derives.

* Test that block rejection restores internal non-finalized chain states

As part of this change, add `eq_internal_state` methods,
and proptests for them.

* Check that the chain's nullifiers are not modified on error

* Clarify a test description

* Refactor loop for readability

Co-authored-by: Janito Vaqueiro Ferreira Filho <janito.vff@gmail.com>

* Fix a variable name typo

Co-authored-by: Janito Vaqueiro Ferreira Filho <janito.vff@gmail.com>
2021-07-14 22:23:54 +00:00
..
service Test that non-finalized block rejections reset the state (#2495) 2021-07-14 22:23:54 +00:00
config.rs Construct structs with ..default() to avoid a lint 2021-01-19 11:02:20 -05:00
constants.rs Update docs for coinbase maturity for NU5 (#2248) 2021-06-04 09:57:41 -03:00
error.rs Reject duplicate sprout nullifiers in the state (#2477) 2021-07-14 09:06:43 -03:00
lib.rs move `Utxo` type to zebra-chain (#2481) 2021-07-12 12:49:33 +10:00
request.rs move `Utxo` type to zebra-chain (#2481) 2021-07-12 12:49:33 +10:00
response.rs move `Utxo` type to zebra-chain (#2481) 2021-07-12 12:49:33 +10:00
service.rs Test that non-finalized block rejections reset the state (#2495) 2021-07-14 22:23:54 +00:00
tests.rs move `Utxo` type to zebra-chain (#2481) 2021-07-12 12:49:33 +10:00
util.rs swap best_chain_len and related constants to u32 for consistency (#1257) 2020-11-06 14:00:10 +10:00