Skip to content

Commit

Permalink
Revert "adjust a few small values"
Browse files Browse the repository at this point in the history
This reverts commit 4107396.
  • Loading branch information
faddat committed Feb 25, 2024
1 parent 4107396 commit a06442b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion blocksync/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const (
//
// Assuming a DSL connection (not a good choice) 128 Kbps (upload) ~ 15 KB/s,
// sending data across atlantic ~ 7.5 KB/s.
minRecvRate = 768000 // 750 KB/s
minRecvRate = 7680

// Maximum difference between current and new block's height.
maxDiffBetweenCurrentAndReceivedBlockHeight = 100
Expand Down
2 changes: 1 addition & 1 deletion blocksync/reactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func NewReactorWithOfflineStateSync(state sm.State, blockExec *sm.BlockExecutor,
}
requestsCh := make(chan BlockRequest, maxTotalRequesters)

const capacity = 2000 // must be bigger than peers count
const capacity = 1000 // must be bigger than peers count
errorsCh := make(chan peerError, capacity) // so we don't block in #Receive#pool.AddBlock
appHashErrorsCh := make(chan p2p.AppHashError) // create an unbuffered channel to stream appHash errors

Expand Down

0 comments on commit a06442b

Please sign in to comment.