Skip to content

Commit 9b47dd8

Browse files
committed
closes #788 with mitigating solution
1 parent 3ab843d commit 9b47dd8

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

jormungandr/src/blockchain/chain.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -318,11 +318,13 @@ impl Blockchain {
318318
.map_err(|e| {
319319
Error::with_chain(e, "cannot check if the block is in the storage")
320320
})
321-
.and_then(|block_exists| {
322-
if block_exists {
323-
unimplemented!(
324-
"method to load a Ref from the storage is not yet there"
325-
)
321+
.and_then(|_block_exists| {
322+
if _block_exists {
323+
// TODO: we have the block in the storage but it is missing
324+
// from the state management. Force the node to fall through
325+
// reloading the blocks from the storage to allow fast
326+
// from storage reload
327+
future::ok(None)
326328
} else {
327329
future::ok(None)
328330
}

0 commit comments

Comments
 (0)