From 2802a06a080852cdc810c4e7a0ce028ecdcd960d Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Mon, 23 Oct 2017 19:46:14 -0400 Subject: [PATCH] blockchain/store: comment about panics --- blockchain/store.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/blockchain/store.go b/blockchain/store.go index 79edfeaf5..5bf854775 100644 --- a/blockchain/store.go +++ b/blockchain/store.go @@ -25,7 +25,8 @@ Currently the precommit signatures are duplicated in the Block parts as well as the Commit. In the future this may change, perhaps by moving the Commit data outside the Block. -Panics indicate probable corruption in the data +// NOTE: BlockStore methods will panic if they encounter errors +// deserializing loaded data, indicating probable corruption on disk. */ type BlockStore struct { db dbm.DB