Implement String method on *Bonsai
This commit is contained in:
parent
54304ba5e6
commit
ee1a27e6fd
|
@ -15,6 +15,10 @@ type Bonsai struct {
|
||||||
Tree *iavl.IAVLTree
|
Tree *iavl.IAVLTree
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (b *Bonsai) String() string {
|
||||||
|
return "Bonsai{" + b.Tree.String() + "}"
|
||||||
|
}
|
||||||
|
|
||||||
var _ SimpleDB = &Bonsai{}
|
var _ SimpleDB = &Bonsai{}
|
||||||
|
|
||||||
// NewBonsai wraps a merkle tree and tags it to track children
|
// NewBonsai wraps a merkle tree and tags it to track children
|
||||||
|
|
Loading…
Reference in New Issue