Implement String method on *Bonsai

This commit is contained in:
Alexis Sellier 2017-08-09 17:21:41 +02:00
parent 54304ba5e6
commit ee1a27e6fd
1 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,10 @@ type Bonsai struct {
Tree *iavl.IAVLTree
}
func (b *Bonsai) String() string {
return "Bonsai{" + b.Tree.String() + "}"
}
var _ SimpleDB = &Bonsai{}
// NewBonsai wraps a merkle tree and tags it to track children