Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
krish-nr committed Oct 22, 2024
1 parent 28a7f0b commit 29a49ec
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion eth/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ import (
"context"
"errors"
"fmt"
"github.com/ethereum/go-ethereum/core/txpool/bundlepool"
"math/big"
"runtime"
"sync"
"time"

"github.com/ethereum/go-ethereum/core/txpool/bundlepool"

"github.com/ethereum/go-ethereum/accounts"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
Expand Down Expand Up @@ -303,6 +304,7 @@ func New(stack *node.Node, config *ethconfig.Config) (*Ethereum, error) {
}
eth.txPool, err = txpool.New(config.TxPool.PriceLimit, eth.blockchain, txPools)
if err != nil {
log.Error("error 1")
return nil, err
}
// Permit the downloader to use the trie cache allowance during fast sync
Expand All @@ -319,6 +321,7 @@ func New(stack *node.Node, config *ethconfig.Config) (*Ethereum, error) {
RequiredBlocks: config.RequiredBlocks,
NoTxGossip: config.RollupDisableTxPoolGossip,
}); err != nil {
log.Error("error 2")
return nil, err
}

Expand All @@ -342,10 +345,14 @@ func New(stack *node.Node, config *ethconfig.Config) (*Ethereum, error) {
dnsclient := dnsdisc.NewClient(dnsdisc.Config{})
eth.ethDialCandidates, err = dnsclient.NewIterator(eth.config.EthDiscoveryURLs...)
if err != nil {
log.Error("error 3")

return nil, err
}
eth.snapDialCandidates, err = dnsclient.NewIterator(eth.config.SnapDiscoveryURLs...)
if err != nil {
log.Error("error 4")

return nil, err
}

Expand Down

0 comments on commit 29a49ec

Please sign in to comment.