Skip to content

Commit

Permalink
merkle: logging for base recursion failure
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddrysdale committed Jun 22, 2018
1 parent be4e023 commit aef1034
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions merkle/hstar2.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}
Expand Down

0 comments on commit aef1034

Please sign in to comment.