Skip to content

Commit eed24e9

Browse files
authored
add ugly todo for inconsistent state in FC (#3579)
1 parent d5535a2 commit eed24e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

execution_chain/core/chain/forked_chain/chain_serialize.nim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,12 +234,14 @@ proc deserialize*(fc: ForkedChainRef): Result[void, string] =
234234
# Sanity Checks for the FC state
235235
if state.latest > state.numBlocks or
236236
state.base > state.numBlocks:
237+
warn "TODO: Inconsistent state found"
237238
fc.reset(prevBase)
238239
return err("Invalid state: latest block is greater than number of blocks")
239240

240241
# Sanity Checks for all the heads in FC state
241242
for head in state.heads:
242243
if head > state.numBlocks:
244+
warn "TODO: Inconsistent state found"
243245
fc.reset(prevBase)
244246
return err("Invalid state: heads greater than number of blocks")
245247

0 commit comments

Comments
 (0)