Implement String method on *Bonsai

This commit is contained in:
Alexis Sellier
2017-08-10 14:51:56 +02:00
parent 54304ba5e6
commit ee1a27e6fd
+4
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