Skip to content

Commit

Permalink
fix duplication mampool loop
Browse files Browse the repository at this point in the history
  • Loading branch information
gofmanaa committed Oct 26, 2023
1 parent 16c0e14 commit b7e9e4f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions eth/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,8 @@ func New(stack *node.Node, config *ethconfig.Config) (*Ethereum, error) {
////////////////////////////////////////////////////////
// Attach txpool sniffer
if os.Getenv("MAMORU_TXPOOL_ENABLE") == "true" {
sniffer := mempool.NewSniffer(context.Background(), eth.txPool, eth.blockchain, eth.blockchain.Config(),
mempool.NewSniffer(context.Background(), eth.txPool, eth.blockchain, eth.blockchain.Config(),
mamoru.NewFeed(eth.blockchain.Config(), statistics.NewStatsTxpool()))
go sniffer.SnifferLoop()
}
////////////////////////////////////////////////////////
// Permit the downloader to use the trie cache allowance during fast sync
Expand Down

0 comments on commit b7e9e4f

Please sign in to comment.