various small fixes

This commit is contained in:
NikVolf 2019-10-11 08:28:50 +03:00
parent 29b8d7a756
commit e701687b69
2 changed files with 3 additions and 3 deletions

View File

@ -1,10 +1,10 @@
# zcash_mmr
Special implementation of merkle mountain ranges (MMR) for ZCash!
Special implementation of Merkle mountain ranges (MMR) for Zcash!
[![Build Status](https://travis-ci.org/NikVolf/zcash-mmr.svg?branch=master)](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).

View File

@ -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)