mirror of
https://github.com/Qortal/pirate-librustzcash.git
synced 2025-08-01 12:51:30 +00:00
various small fixes
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
# zcash_mmr
|
# 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)
|
[](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).
|
- 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(),
|
i @ 0..=0xfc => i.into(),
|
||||||
0xfd => reader.read_u16::<LittleEndian>()?.into(),
|
0xfd => reader.read_u16::<LittleEndian>()?.into(),
|
||||||
0xfe => reader.read_u32::<LittleEndian>()?.into(),
|
0xfe => reader.read_u32::<LittleEndian>()?.into(),
|
||||||
_ => reader.read_u64::<LittleEndian>()?.into(),
|
_ => reader.read_u64::<LittleEndian>()?,
|
||||||
};
|
};
|
||||||
|
|
||||||
Ok(result)
|
Ok(result)
|
||||||
|
Reference in New Issue
Block a user