Skip to content

Commit

Permalink
fix(transform itx): allow internal index == ITX_PER_TX_LIMIT
Browse files Browse the repository at this point in the history
  • Loading branch information
Tangui-Bitfly committed Nov 18, 2024
1 parent 6bb6221 commit 7056058
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/bigtable_eth1.go
Original file line number Diff line number Diff line change
Expand Up @@ -1357,7 +1357,7 @@ func (bigtable *Bigtable) TransformItx(blk *types.Eth1Block, cache *freecache.Ca

var revertSource string
for j, itx := range tx.GetItx() {
if j >= ITX_PER_TX_LIMIT {
if j > ITX_PER_TX_LIMIT {
return nil, nil, fmt.Errorf("unexpected number of internal transactions in block expected at most %d but got: %v, tx: %x", ITX_PER_TX_LIMIT, j, tx.GetHash())
}
jReversed := reversePaddedIndex(j, ITX_PER_TX_LIMIT)
Expand Down

0 comments on commit 7056058

Please sign in to comment.