Skip to content

Commit

Permalink
increase message buffer to keep message
Browse files Browse the repository at this point in the history
  • Loading branch information
賴怡誠 authored and 賴怡誠 committed Oct 1, 2024
1 parent ccbedce commit 4afd663
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions eth/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ var (
)

const (
maxKnownTxs = 32768 // Maximum transactions hashes to keep in the known list (prevent DOS)
maxKnownOrderTxs = 32768 // Maximum transactions hashes to keep in the known list (prevent DOS)
maxKnownLendingTxs = 32768 // Maximum transactions hashes to keep in the known list (prevent DOS)
maxKnownBlocks = 1024 // Maximum block hashes to keep in the known list (prevent DOS)
maxKnownVote = 1024 // Maximum transactions hashes to keep in the known list (prevent DOS)
maxKnownTimeout = 1024 // Maximum transactions hashes to keep in the known list (prevent DOS)
maxKnownSyncInfo = 1024 // Maximum transactions hashes to keep in the known list (prevent DOS)
maxKnownTxs = 32768 // Maximum transactions hashes to keep in the known list (prevent DOS)
maxKnownOrderTxs = 32768 // Maximum transactions hashes to keep in the known list (prevent DOS)
maxKnownLendingTxs = 32768 // Maximum transactions hashes to keep in the known list (prevent DOS)
maxKnownBlocks = 1024 // Maximum block hashes to keep in the known list (prevent DOS)
maxKnownVote = 131072 // Maximum transactions hashes to keep in the known list (prevent DOS)
maxKnownTimeout = 131072 // Maximum transactions hashes to keep in the known list (prevent DOS)
maxKnownSyncInfo = 131072 // Maximum transactions hashes to keep in the known list (prevent DOS)
handshakeTimeout = 5 * time.Second
)

Expand Down

0 comments on commit 4afd663

Please sign in to comment.