mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 11:41:19 +00:00
Pre-Shanghai blocks should have `nil` withdrawals, while post-Shanghai
blocks should have non-nil withdrawals (empty or non-empty slice, but
not `nil`). Judging from Issue #6976, that's not always a case. PR #7279
attempted to fix the issue, but unfortunately it only masks the root
cause.
This reverts commit c60a6a2962
.
This commit is contained in:
parent
db52bbafb3
commit
7b576e9fda
@ -341,11 +341,6 @@ func RPCMarshalBlockExDeprecated(block *types.Block, inclTx bool, fullTx bool, b
|
||||
fields["withdrawals"] = block.Withdrawals()
|
||||
}
|
||||
|
||||
// Ensure that withdrawals is not null at all times.
|
||||
if fields["withdrawals"] == nil {
|
||||
fields["withdrawals"] = []*types.Withdrawal{}
|
||||
}
|
||||
|
||||
return fields, nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user