Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deny clippy::arithmetic_side_effects for fuel-merkle (#729)
* Rename Instruction -> Size and reuse it for orientation * Small refactorings * Rework path_length_from_key * Promote key_size_bits to a constant * More checks * Simplify, add lints, add comments * Remove Bit type and GetBit trait * Make common_prefix_count unable to overflow * Fix key_size_bits * Add changelog entry * Relax lints for tests * Use Bit alias, remove unused impl * Revert some tests back to {left,right}_child * Update fuel-merkle/src/common/position.rs Co-authored-by: Brandon Vrooman <brandon.vrooman@fuel.sh> * Address PR comments * Restore comment * Document panic on getting a child of a leaf node * fmt * Add some tests to show the problem * Something * Fix a possible overflow in path_length_from_key for large inputs * Address PR comments * Address PR feedback * Update fuel-merkle/src/common/position.rs Co-authored-by: Green Baneling <XgreenX9999@gmail.com> * Fix potential overflow in 'orientation' * Move sibling and uncle fns under cfg(test) * Change TreeExtendError into MerkleTreeError * WIP: Subtree -> VecDeque * Remove Subtree, use VecDeque instead * Reverse internal node order in binary MerkleTree to use Vec instead of VecDeque * Use MerkleRootCalculator in MerkleTree to unify impls * More docs * Cleanup --------- Co-authored-by: Brandon Vrooman <brandon.vrooman@fuel.sh> Co-authored-by: xgreenx <xgreenx9999@gmail.com>
- Loading branch information