From ee1a27e6fd0c740c0e6f2214959eb7ed16eedbd2 Mon Sep 17 00:00:00 2001 From: Alexis Sellier Date: Wed, 9 Aug 2017 17:21:41 +0200 Subject: [PATCH] Implement String method on *Bonsai --- state/bonsai.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/state/bonsai.go b/state/bonsai.go index 7eb98568a9..eae0f589fb 100644 --- a/state/bonsai.go +++ b/state/bonsai.go @@ -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