Zebra/zebra-chain/src/block
Alfredo Garcia c93f0b3a2e
Block Subsidy and Founders Reward Amounts (#1051)
* add general and founders reward subsidy modules
* validate founders reward
* Use funding streams after Canopy on testnet
ZIP-1014 only applies to mainnet, where Canopy is at the first halving.
On testnet, Canopy is before the first halving, and the dev fund rules
apply from Canopy. (See ZIP-214.)
Co-authored-by: teor <teor@riseup.net>
Co-authored-by: Jane Lusby <jlusby42@gmail.com>

* pass all test vectors through current subsidy validation
* Add testnet and halving subsidy tests
* add subsidy validation error tests

* rename block validation methods
* add network to block verifier

* add amount operators
* Implement Ord, Eq, and Hash for Amount
* Implement Add<Height> for Height
And make the existing Height operators do range checks.
* Apply operator suggestions
Co-authored-by: Jane Lusby <jlusby42@gmail.com>
2020-10-13 06:54:48 +10:00
..
tests Add tests for `Chain` implementation (#1093) 2020-10-02 15:51:51 -07:00
arbitrary.rs Implement MVP of NonFinalizedState and integrate it with the state service (#1101) 2020-10-08 13:07:32 +10:00
hash.rs export proptest impls for use in downstream crates (#1092) 2020-09-23 18:52:52 -07:00
header.rs Add wrapper fn is_time_valid_at in zebra_consensus::block::check 2020-09-09 12:48:15 +10:00
height.rs Block Subsidy and Founders Reward Amounts (#1051) 2020-10-13 06:54:48 +10:00
merkle.rs export proptest impls for use in downstream crates (#1092) 2020-09-23 18:52:52 -07:00
root_hash.rs Update to `RootHash` in comments 2020-09-16 12:26:25 -04:00
serialize.rs chain: rename to block::merkle::{Root, Tree}. 2020-08-17 11:46:34 -07:00
tests.rs export proptest impls for use in downstream crates (#1092) 2020-09-23 18:52:52 -07:00