diff --git a/build/params_2k.go b/build/params_2k.go index 6d1f3d46c45..7e8af075ead 100644 --- a/build/params_2k.go +++ b/build/params_2k.go @@ -7,7 +7,6 @@ import ( "os" "github.com/filecoin-project/go-state-types/abi" - "github.com/filecoin-project/lotus/chain/actors/policy" ) @@ -53,3 +52,5 @@ const SlashablePowerDelay = 20 // Epochs const InteractivePoRepConfidence = 6 + +const BootstrapPeerThreshold = 1 diff --git a/build/params_mainnet.go b/build/params_mainnet.go index 94deedfec33..939529b8594 100644 --- a/build/params_mainnet.go +++ b/build/params_mainnet.go @@ -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" ) @@ -60,3 +59,5 @@ func init() { const BlockDelaySecs = uint64(builtin2.EpochDurationSeconds) const PropagationDelaySecs = uint64(6) + +const BootstrapPeerThreshold = 4 diff --git a/build/params_testground.go b/build/params_testground.go index d9893a5f5ea..34e91ce7aee 100644 --- a/build/params_testground.go +++ b/build/params_testground.go @@ -98,3 +98,5 @@ var ( Devnet = true ) + +const BootstrapPeerThreshold = 1 diff --git a/chain/sync_manager.go b/chain/sync_manager.go index 641226e0f6b..808861950bb 100644 --- a/chain/sync_manager.go +++ b/chain/sync_manager.go @@ -17,7 +17,7 @@ import ( ) var ( - BootstrapPeerThreshold = 4 + BootstrapPeerThreshold = build.BootstrapPeerThreshold RecentSyncBufferSize = 10 MaxSyncWorkers = 5