Skip to content

Commit

Permalink
eth/protocols/eth, eth/fetcher: increased queued tx announcements
Browse files Browse the repository at this point in the history
  • Loading branch information
sadoci committed Jul 25, 2022
1 parent ca05643 commit 5e04b2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions eth/fetcher/tx_fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import (
const (
// maxTxAnnounces is the maximum number of unique transaction a peer
// can announce in a short time.
maxTxAnnounces = 4096
maxTxAnnounces = 1500000

// maxTxRetrievals is the maximum transaction number can be fetched in one
// request. The rationale to pick 256 is:
Expand All @@ -51,7 +51,7 @@ const (
// maxTxUnderpricedSetSize is the size of the underpriced transaction set that
// is used to track recent transactions that have been dropped so we don't
// re-request them.
maxTxUnderpricedSetSize = 32768
maxTxUnderpricedSetSize = 32768 * 10

// txArriveTimeout is the time allowance before an announced transaction is
// explicitly requested.
Expand Down
6 changes: 3 additions & 3 deletions eth/protocols/eth/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,19 @@ import (
const (
// maxKnownTxs is the maximum transactions hashes to keep in the known list
// before starting to randomly evict them.
maxKnownTxs = 32768
maxKnownTxs = 2000000

// maxKnownBlocks is the maximum block hashes to keep in the known list
// before starting to randomly evict them.
maxKnownBlocks = 1024

// maxQueuedTxs is the maximum number of transactions to queue up before dropping
// older broadcasts.
maxQueuedTxs = 4096
maxQueuedTxs = 1500000

// maxQueuedTxAnns is the maximum number of transaction announcements to queue up
// before dropping older announcements.
maxQueuedTxAnns = 4096
maxQueuedTxAnns = 1500000

// maxQueuedBlocks is the maximum number of block propagations to queue up before
// dropping broadcasts. There's not much point in queueing stale blocks, so a few
Expand Down

0 comments on commit 5e04b2a

Please sign in to comment.