Skip to content

Commit

Permalink
api: enhance missing node error log at stateAtBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
yoomee1313 committed Jan 31, 2024
1 parent ebe8779 commit 2480c66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/cn/state_accessor.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (cn *CN) stateAtBlock(block *types.Block, reexec uint64, base *state.StateD
if err != nil {
switch err.(type) {
case *statedb2.MissingNodeError:
return nil, fmt.Errorf("required historical state unavailable (reexec=%d)", reexec)
return nil, fmt.Errorf("historical state unavailable. tried regeneration but not possible, possibly due to state migration/pruning or a small reexec value (reexec=%d)", reexec)
default:
return nil, err
}
Expand Down

0 comments on commit 2480c66

Please sign in to comment.