Skip to content

Commit

Permalink
Merge pull request #4797 from zgfzgf/fix-2k-chain-syn
Browse files Browse the repository at this point in the history
2k sync BootstrapPeerThreshold
  • Loading branch information
magik6k authored Nov 12, 2020
2 parents 3a39863 + 11ed015 commit d525acd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion build/params_2k.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"os"

"github.com/filecoin-project/go-state-types/abi"

"github.com/filecoin-project/lotus/chain/actors/policy"
)

Expand Down Expand Up @@ -53,3 +52,5 @@ const SlashablePowerDelay = 20

// Epochs
const InteractivePoRepConfidence = 6

const BootstrapPeerThreshold = 1
3 changes: 2 additions & 1 deletion build/params_mainnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"github.com/filecoin-project/go-address"
"github.com/filecoin-project/go-state-types/abi"
"github.com/filecoin-project/lotus/chain/actors/policy"

builtin2 "github.com/filecoin-project/specs-actors/v2/actors/builtin"
)

Expand Down Expand Up @@ -60,3 +59,5 @@ func init() {
const BlockDelaySecs = uint64(builtin2.EpochDurationSeconds)

const PropagationDelaySecs = uint64(6)

const BootstrapPeerThreshold = 4
2 changes: 2 additions & 0 deletions build/params_testground.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,5 @@ var (

Devnet = true
)

const BootstrapPeerThreshold = 1
2 changes: 1 addition & 1 deletion chain/sync_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
)

var (
BootstrapPeerThreshold = 4
BootstrapPeerThreshold = build.BootstrapPeerThreshold

RecentSyncBufferSize = 10
MaxSyncWorkers = 5
Expand Down

0 comments on commit d525acd

Please sign in to comment.