mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 21:56:43 +00:00
Improved a bit how we fix fee log non-revertion
This commit is contained in:
parent
faf9e665c7
commit
7e0f1126e7
1 changed files with 2 additions and 1 deletions
|
|
@ -897,7 +897,7 @@ func (f *Firehose) removeLogBlockIndexOnStateRevertedCalls() {
|
|||
for _, call := range f.transaction.Calls {
|
||||
if call.StateReverted {
|
||||
for _, log := range call.Logs {
|
||||
if isPolygonFeeTransferLog(log) {
|
||||
if isPolygon && isPolygonFeeTransferLog(log) {
|
||||
// Polygon transfer and fee transfer logs are never reverted, so we must **not** reset them here as
|
||||
// they are properly recorded to the chain's state.
|
||||
continue
|
||||
|
|
@ -915,6 +915,7 @@ var (
|
|||
polygonFeeAddress = common.HexToAddress("0x0000000000000000000000000000000000001010")
|
||||
)
|
||||
|
||||
//go:inline
|
||||
func isPolygonFeeTransferLog(log *pbeth.Log) bool {
|
||||
return bytes.Equal(log.Address, polygonFeeAddress[:]) && len(log.Topics) == 4 && bytes.Equal(log.Topics[0], polygonTransferFeeLogSig[:])
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue