We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3ab843d + 9b47dd8 commit 40f804aCopy full SHA for 40f804a
jormungandr/src/blockchain/chain.rs
@@ -318,11 +318,13 @@ impl Blockchain {
318
.map_err(|e| {
319
Error::with_chain(e, "cannot check if the block is in the storage")
320
})
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
- )
+ .and_then(|_block_exists| {
+ if _block_exists {
+ // TODO: we have the block in the storage but it is missing
+ // from the state management. Force the node to fall through
+ // reloading the blocks from the storage to allow fast
326
+ // from storage reload
327
+ future::ok(None)
328
} else {
329
future::ok(None)
330
}
0 commit comments