mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 14:16:44 +00:00
Update accessors_indexes_test.go
This commit is contained in:
parent
4dc153f39f
commit
5c1957248b
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue