From aef10347dba1bd86a0fcb152b47989d0b51ba1fa Mon Sep 17 00:00:00 2001 From: David Drysdale Date: Fri, 22 Jun 2018 14:57:17 +0100 Subject: [PATCH] merkle: logging for base recursion failure --- merkle/hstar2.go | 1 + 1 file changed, 1 insertion(+) diff --git a/merkle/hstar2.go b/merkle/hstar2.go index 96ec2829f0..d0e673b8f1 100644 --- a/merkle/hstar2.go +++ b/merkle/hstar2.go @@ -103,6 +103,7 @@ func (s *HStar2) hStar2b(depth, maxDepth int, values []HStar2LeafHash, offset *b case len(values) == 1: return values[0].LeafHash, nil default: + glog.Errorf("base case with too many values: %+v", values) return nil, fmt.Errorf("hStar2b base case: len(values): %d, want 1", len(values)) } }