Skip to content

Commit

Permalink
Merge pull request #2103 from yoomee1313/enhance-error-log
Browse files Browse the repository at this point in the history
api: enhance missing node error log at stateAtBlock
  • Loading branch information
blukat29 committed Jan 31, 2024
2 parents 4e8ec8c + f950731 commit c4e3de2
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 global state saving interval is bigger than reexec value (reexec=%d)", reexec)
default:
return nil, err
}
Expand Down

0 comments on commit c4e3de2

Please sign in to comment.