grin/chain/tests
Antioch Peverell 1cff387f61
Use mmr sizes in header to validate header weight (#3395)
* use mmr sizes in header to validate block weight given header only

* add global weight validaton to headers when reading them untrusted off the network

* fixup tests, one pending test

* add test for deserializing untrusted block header exceeeding weight limits

* validate header mmr sizes, must grow for each block

* remove redundant height check

* fix tests after rebase
block specific TooHeavy error
2020-08-19 09:40:56 +01:00
..
bitmap_accumulator.rs Update License to 2020 (#3196) 2020-01-20 11:40:58 +00:00
chain_test_helper.rs pass slices around and not refs to vecs (#3404) 2020-07-27 11:07:18 +01:00
data_file_integrity.rs Update License to 2020 (#3196) 2020-01-20 11:40:58 +00:00
mine_nrd_kernel.rs pass slices around and not refs to vecs (#3404) 2020-07-27 11:07:18 +01:00
mine_simple_chain.rs Simplify api commits (#3423) 2020-08-17 13:19:29 -04:00
nrd_validation_rules.rs pass slices around and not refs to vecs (#3404) 2020-07-27 11:07:18 +01:00
process_block_cut_through.rs Use mmr sizes in header to validate header weight (#3395) 2020-08-19 09:40:56 +01:00
store_indices.rs Update License to 2020 (#3196) 2020-01-20 11:40:58 +00:00
store_kernel_pos_index.rs NRD rules and "recent" kernel pos index (#3302) 2020-06-10 16:38:29 +01:00
test_block_known.rs refactor apply_inputs and support converting block for v2 compatibility (#3409) 2020-07-31 14:36:20 +01:00
test_coinbase_maturity.rs pass slices around and not refs to vecs (#3404) 2020-07-27 11:07:18 +01:00
test_get_kernel_height.rs more robust handling of min_height and max_height in get_kernel_height() (#3387) 2020-07-13 11:31:52 +01:00
test_header_weight_validation.rs Use mmr sizes in header to validate header weight (#3395) 2020-08-19 09:40:56 +01:00
test_txhashset.rs thread local chain type vs global chain type (#3327) 2020-05-22 12:51:58 +01:00
test_txhashset_archive.rs Update License to 2020 (#3196) 2020-01-20 11:40:58 +00:00