Update accessors_indexes_test.go

This commit is contained in:
Felix Lange 2025-06-18 14:59:52 +02:00 committed by GitHub
parent 4dc153f39f
commit 5c1957248b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -120,7 +120,7 @@ func TestLookupStorage(t *testing.T) {
} }
} }
func TestTraverseBlockBody(t *testing.T) { func TestFindTxInBlockBody(t *testing.T) {
tx1 := types.NewTx(&types.LegacyTx{ tx1 := types.NewTx(&types.LegacyTx{
Nonce: 1, Nonce: 1,
GasPrice: big.NewInt(1), GasPrice: big.NewInt(1),
@ -205,7 +205,7 @@ func TestTraverseBlockBody(t *testing.T) {
rlp := ReadBodyRLP(db, block.Hash(), block.NumberU64()) rlp := ReadBodyRLP(db, block.Hash(), block.NumberU64())
for i := 0; i < len(txs); i++ { for i := 0; i < len(txs); i++ {
tx, txIndex, err := traverseBlockBody(rlp, txs[i].Hash()) tx, txIndex, err := findTxInBlockBody(rlp, txs[i].Hash())
if err != nil { if err != nil {
t.Fatalf("Failed to retrieve tx, err: %v", err) t.Fatalf("Failed to retrieve tx, err: %v", err)
} }