mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
eth: fix test
This commit is contained in:
parent
e84fcef9e7
commit
eb25e657e7
1 changed files with 4 additions and 1 deletions
|
|
@ -20,7 +20,9 @@ import (
|
|||
"context"
|
||||
"crypto/ecdsa"
|
||||
"errors"
|
||||
"fmt"
|
||||
"math/big"
|
||||
"path/filepath"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
|
|
@ -66,7 +68,8 @@ func initBackend(t *testing.T, withLocal bool) *EthAPIBackend {
|
|||
txconfig := legacypool.DefaultConfig
|
||||
txconfig.Journal = "" // Don't litter the disk with test journals
|
||||
|
||||
blobPool := blobpool.New(blobpool.Config{Datadir: t.TempDir()}, chain, nil)
|
||||
dir := filepath.Join(t.TempDir(), fmt.Sprintf("withLocal%t", withLocal))
|
||||
blobPool := blobpool.New(blobpool.Config{Datadir: dir}, chain, nil)
|
||||
legacyPool := legacypool.New(txconfig, chain)
|
||||
txpool, _ := txpool.New(txconfig.PriceLimit, chain, []txpool.SubPool{legacyPool, blobPool})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue