diff --git a/store/prefixstore.go b/store/prefixstore.go index 04d268057d..981d821311 100644 --- a/store/prefixstore.go +++ b/store/prefixstore.go @@ -168,7 +168,7 @@ func (iter prefixIterator) Key() (key []byte) { // Implements Iterator func (iter prefixIterator) Value() []byte { - if !iter.valid() { + if !iter.valid { panic("prefixIterator invalid, cannot call Value()") } return iter.iter.Value()