Skip to content

Commit

Permalink
fix(internal tx): only save the highest root revert
Browse files Browse the repository at this point in the history
  • Loading branch information
Tangui-Bitfly committed Oct 2, 2024
1 parent 24087a7 commit 5a4c542
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion db/bigtable_eth1.go
Original file line number Diff line number Diff line change
Expand Up @@ -2873,7 +2873,10 @@ func (bigtable *Bigtable) GetInternalTransfersForTransaction(transaction []byte,
var reverted bool
if parityTrace[i].Error != "" {
reverted = true
revertSource = parityTrace[i].TraceAddress
// only save the highest root revert
if !isSubset(parityTrace[i].TraceAddress, revertSource) {
revertSource = parityTrace[i].TraceAddress
}
}
if isSubset(parityTrace[i].TraceAddress, revertSource) {
reverted = true
Expand Down

0 comments on commit 5a4c542

Please sign in to comment.