diff --git a/storage/src/main/java/tech/pegasys/teku/storage/server/rocksdb/RocksDbInstance.java b/storage/src/main/java/tech/pegasys/teku/storage/server/rocksdb/RocksDbInstance.java index 8ed14e3ab5d..3a7c72797ab 100644 --- a/storage/src/main/java/tech/pegasys/teku/storage/server/rocksdb/RocksDbInstance.java +++ b/storage/src/main/java/tech/pegasys/teku/storage/server/rocksdb/RocksDbInstance.java @@ -160,6 +160,7 @@ public Stream> streamRaw(final KvStoreColumn col @Override @MustBeClosed public Stream streamKeysRaw(final KvStoreColumn column) { + assertOpen(); return createStreamKeyRaw(column, RocksIterator::seekToFirst, key -> true).map(Bytes::wrap); }