grin/chain/tests
John Tromp 53414ae105
Fixmmr part2 (#3666)
* use 0-based positions in  methods pmmr_leaf_to_insertion_index and bintree_postorder_height; add round_up_to_leaf_pos method

* use 0-based positions in method insertion_to_pmmr_index

* use 0-based positions in method is_leaf

* use 0-based positions in method family()

* use 0-based positions in method is_left_sibling

* use 0-based positions in method family_branch

* use 0-based positions in methods bintree_{left,right}most

* use 0-based positions in method bintree_pos_iter

* use 0-based positions in method bintree_range

* use 0-based positions in method bintree_leaf_pos_iter

* rename last_pos in MMR related structs to size

* use 0-based positions in method prune

* use 0-based positions in method push and apply_output return value

* use 0-based position argument of method merkle_proof

* use 0-based outputs in method pmmr::peaks

* fix peaks() code comments

* refix peaks() code comments

* use 0-based positions in method get_peak_from_file

* use 0-based positions in methods get_data_from_file

* use 0-based positions in methods get_from_file

* use 0-based positions in methods get_data

* use 0-based positions in methods get_hash

* use 0-based positions in method peak_path

* use 0-based positions in method bag_the_rhs

* use 0-based positions in method Backend::remove

* use 0-based positions in method leaf_pos_iter

* use 0-based positions in method self.LeafSet::includes

* use 0-based positions in methods self.LeafSet::{add,remove}

* use 0-based positions in methods is_pruned,is_pruned_root,is_compacted

* use 0-based positions in methods PruneList::append

* use 0-based positions in methods append_pruned_subtree

* use 0-based positions in method calculate_next_leaf_shift

* use 0-based positions in method append_single

* use 0-based positions in method calculate_next_shift

* use 0-based positions in method segment_pos_range

* use 0-based positions in method reconstruct_root

* use 0-based positions in method validate_with

* use 0-based positions in method validate

* rename size (formerly last_pos) to mmr_size

* use 0-based positions in Segment's hash_pos and leaf_pos

* minimize use of saturating_sub(1) and rename some pos/idx to size

* use 0-based positions in methods get_output_pos

* use 0-based positions in method get_unspent_output_at

* use 0-based positions in method get_header_hash

* use 0-based positions in methods MerkleProof::verify{,_consume}

* use 0-based positions in method cleanup_subtree

* don't allow 0 in prunelist bitmap

* use 0-based positions in methods get_{,leaf_}shift

* rename some 1-based pos to pos1; identify TODO

* Address yeastplume's PR review comments
2021-11-26 11:25:10 +00:00
..
test_data [PIBD] Chain Segmenter Validation Test + Block Archive Horizon Change (#3665) 2021-11-23 12:38:52 +00:00
bitmap_accumulator.rs Update copyright year to 2021 (#3592) 2021-03-10 10:14:48 -05:00
bitmap_segment.rs More efficient serialization for bitmap segments (#3492) 2020-11-24 15:19:07 +01:00
chain_test_helper.rs never speak of the verifier cache again (#3628) 2021-04-01 15:04:53 +01:00
data_file_integrity.rs Update copyright year to 2021 (#3592) 2021-03-10 10:14:48 -05:00
mine_nrd_kernel.rs implement fix past fees RFC with fee shift since genesis (#3629) 2021-05-11 16:39:09 +01:00
mine_simple_chain.rs PMMR Backend Support for append_pruned_root (Continued) (#3659) 2021-11-09 15:34:10 +00:00
nrd_validation_rules.rs implement fix past fees RFC with fee shift since genesis (#3629) 2021-05-11 16:39:09 +01:00
process_block_cut_through.rs Fixmmr part2 (#3666) 2021-11-26 11:25:10 +00:00
store_indices.rs Update copyright year to 2021 (#3592) 2021-03-10 10:14:48 -05:00
store_kernel_pos_index.rs Update copyright year to 2021 (#3592) 2021-03-10 10:14:48 -05:00
test_block_known.rs Update copyright year to 2021 (#3592) 2021-03-10 10:14:48 -05:00
test_coinbase_maturity.rs implement fix past fees RFC with fee shift since genesis (#3629) 2021-05-11 16:39:09 +01:00
test_get_kernel_height.rs Update copyright year to 2021 (#3592) 2021-03-10 10:14:48 -05:00
test_header_weight_validation.rs Update copyright year to 2021 (#3592) 2021-03-10 10:14:48 -05:00
test_pibd_validation.rs [PIBD] Chain Segmenter Validation Test + Block Archive Horizon Change (#3665) 2021-11-23 12:38:52 +00:00
test_txhashset.rs Update copyright year to 2021 (#3592) 2021-03-10 10:14:48 -05:00
test_txhashset_archive.rs Update copyright year to 2021 (#3592) 2021-03-10 10:14:48 -05:00