Skip to content

Commit

Permalink
rpcdaemon: Set correct tx index when generating Bor receipts (#12408)
Browse files Browse the repository at this point in the history
  • Loading branch information
shohamc1 authored Oct 22, 2024
1 parent 09fefa4 commit 6c95e9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion turbo/jsonrpc/receipts/bor_receipts_generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (g *BorGenerator) GenerateBorReceipt(ctx context.Context, tx kv.Tx, block *
}

txNumsReader := rawdbv3.TxNums.WithCustomReadTxNumFunc(freezeblocks.ReadTxNumFuncFromBlockReader(ctx, g.blockReader))
ibs, blockContext, _, _, _, err := transactions.ComputeBlockContext(ctx, g.engine, block.HeaderNoCopy(), chainConfig, g.blockReader, txNumsReader, tx, 0)
ibs, blockContext, _, _, _, err := transactions.ComputeBlockContext(ctx, g.engine, block.HeaderNoCopy(), chainConfig, g.blockReader, txNumsReader, tx, len(blockReceipts)-1)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 6c95e9c

Please sign in to comment.