Skip to content

Commit 0979c6a

Browse files
core: improve error context in state processor for Prague EIPs (#32509)
Add better error context for EIP-6110, EIP-7002, and EIP-7251 processing in state processor to improve debugging capabilities.
1 parent 9af1f71 commit 0979c6a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/state_processor.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,15 +110,15 @@ func (p *StateProcessor) Process(block *types.Block, statedb *state.StateDB, cfg
110110
requests = [][]byte{}
111111
// EIP-6110
112112
if err := ParseDepositLogs(&requests, allLogs, p.config); err != nil {
113-
return nil, err
113+
return nil, fmt.Errorf("failed to parse deposit logs: %w", err)
114114
}
115115
// EIP-7002
116116
if err := ProcessWithdrawalQueue(&requests, evm); err != nil {
117-
return nil, err
117+
return nil, fmt.Errorf("failed to process withdrawal queue: %w", err)
118118
}
119119
// EIP-7251
120120
if err := ProcessConsolidationQueue(&requests, evm); err != nil {
121-
return nil, err
121+
return nil, fmt.Errorf("failed to process consolidation queue: %w", err)
122122
}
123123
}
124124

0 commit comments

Comments
 (0)