Skip to content

Commit

Permalink
make the number of p2p parallel enqueue routines fixable
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhang2023 committed Oct 12, 2024
1 parent 186ecfa commit b6d8957
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions eth/handler_eth.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"errors"
"fmt"
"math/big"
"runtime"
"time"

"github.com/ethereum/go-ethereum/common"
Expand All @@ -31,8 +32,8 @@ import (
)

// TxQueueSize is the size of the transaction queue used to enqueue transactions
const (
TxQueueSize = 16
var (
TxQueueSize = runtime.NumCPU()
)

// enqueueTx is a channel to enqueue transactions in parallel.
Expand Down

0 comments on commit b6d8957

Please sign in to comment.