mirror of
https://github.com/Qortal/pirate-librustzcash.git
synced 2025-07-30 03:51:22 +00:00
various small fixes
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
# zcash_mmr
|
||||
|
||||
Special implementation of merkle mountain ranges (MMR) for ZCash!
|
||||
Special implementation of Merkle mountain ranges (MMR) for Zcash!
|
||||
|
||||
[](https://travis-ci.org/NikVolf/zcash-mmr)
|
||||
|
||||
The main design goals of this mmr implementation are
|
||||
The main design goals of this MMR implementation are
|
||||
|
||||
- Allow zero-cache and avoid db callbacks. As it is implemented, calling side must just smartly pre-load MMR nodes from the database (about log2(tree length) for append, twice as much for deletion).
|
||||
|
||||
|
@@ -127,7 +127,7 @@ impl NodeData {
|
||||
i @ 0..=0xfc => i.into(),
|
||||
0xfd => reader.read_u16::<LittleEndian>()?.into(),
|
||||
0xfe => reader.read_u32::<LittleEndian>()?.into(),
|
||||
_ => reader.read_u64::<LittleEndian>()?.into(),
|
||||
_ => reader.read_u64::<LittleEndian>()?,
|
||||
};
|
||||
|
||||
Ok(result)
|
||||
|
Reference in New Issue
Block a user