Merge pull request #4797 from zgfzgf/fix-2k-chain-syn
2k sync BootstrapPeerThreshold
This commit is contained in:
commit
d525acdeda
@ -7,7 +7,6 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/filecoin-project/go-state-types/abi"
|
"github.com/filecoin-project/go-state-types/abi"
|
||||||
|
|
||||||
"github.com/filecoin-project/lotus/chain/actors/policy"
|
"github.com/filecoin-project/lotus/chain/actors/policy"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -53,3 +52,5 @@ const SlashablePowerDelay = 20
|
|||||||
|
|
||||||
// Epochs
|
// Epochs
|
||||||
const InteractivePoRepConfidence = 6
|
const InteractivePoRepConfidence = 6
|
||||||
|
|
||||||
|
const BootstrapPeerThreshold = 1
|
||||||
|
@ -11,7 +11,6 @@ import (
|
|||||||
"github.com/filecoin-project/go-address"
|
"github.com/filecoin-project/go-address"
|
||||||
"github.com/filecoin-project/go-state-types/abi"
|
"github.com/filecoin-project/go-state-types/abi"
|
||||||
"github.com/filecoin-project/lotus/chain/actors/policy"
|
"github.com/filecoin-project/lotus/chain/actors/policy"
|
||||||
|
|
||||||
builtin2 "github.com/filecoin-project/specs-actors/v2/actors/builtin"
|
builtin2 "github.com/filecoin-project/specs-actors/v2/actors/builtin"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -60,3 +59,5 @@ func init() {
|
|||||||
const BlockDelaySecs = uint64(builtin2.EpochDurationSeconds)
|
const BlockDelaySecs = uint64(builtin2.EpochDurationSeconds)
|
||||||
|
|
||||||
const PropagationDelaySecs = uint64(6)
|
const PropagationDelaySecs = uint64(6)
|
||||||
|
|
||||||
|
const BootstrapPeerThreshold = 4
|
||||||
|
@ -98,3 +98,5 @@ var (
|
|||||||
|
|
||||||
Devnet = true
|
Devnet = true
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const BootstrapPeerThreshold = 1
|
||||||
|
@ -17,7 +17,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
BootstrapPeerThreshold = 4
|
BootstrapPeerThreshold = build.BootstrapPeerThreshold
|
||||||
|
|
||||||
RecentSyncBufferSize = 10
|
RecentSyncBufferSize = 10
|
||||||
MaxSyncWorkers = 5
|
MaxSyncWorkers = 5
|
||||||
|
Loading…
Reference in New Issue
Block a user