printing value of branch
This commit is contained in:
parent
6c1c619247
commit
ec09deefb7
@ -210,8 +210,10 @@ impl TrieDB {
|
|||||||
let rlp = self.db.lookup(&H256::from_slice(sha3)).expect("sha3 not found!");
|
let rlp = self.db.lookup(&H256::from_slice(sha3)).expect("sha3 not found!");
|
||||||
try!(self.fmt_all(rlp, f, deepness + 1));
|
try!(self.fmt_all(rlp, f, deepness + 1));
|
||||||
},
|
},
|
||||||
Node::Branch(Some(ref nodes), _) => {
|
Node::Branch(Some(ref nodes), ref value) => {
|
||||||
try!(writeln!(f, "Branch: "));
|
try!(writeln!(f, "Branch: "));
|
||||||
|
try!(self.fmt_indent(f, deepness + 1));
|
||||||
|
try!(writeln!(f, ": {:?}", value.pretty()));
|
||||||
for i in 0..16 {
|
for i in 0..16 {
|
||||||
match Node::decoded(nodes[i]) {
|
match Node::decoded(nodes[i]) {
|
||||||
Node::Branch(None, _) => (),
|
Node::Branch(None, _) => (),
|
||||||
|
Loading…
Reference in New Issue
Block a user