diff --git a/build/params.go b/build/params.go index cb92ec62d..6743b7b01 100644 --- a/build/params.go +++ b/build/params.go @@ -36,7 +36,7 @@ const BlockDelay = 6 const AllowableClockDrift = BlockDelay * 2 // Blocks -const ForkLengthThreshold = 20 +const ForkLengthThreshold = 100 // ///// // Proofs / Mining diff --git a/chain/gen/gen.go b/chain/gen/gen.go index 987421e31..5cee19efb 100644 --- a/chain/gen/gen.go +++ b/chain/gen/gen.go @@ -31,7 +31,7 @@ import ( var log = logging.Logger("gen") -const msgsPerBlock = 5 +const msgsPerBlock = 20 type ChainGen struct { accounts []address.Address @@ -141,7 +141,6 @@ func NewGenerator() (*ChainGen, error) { if err != nil { return nil, xerrors.Errorf("make genesis block failed: %w", err) } - fmt.Println("MINER CFG ADDRESSES: ", minercfg.MinerAddrs) cs := store.NewChainStore(bs, ds) diff --git a/chain/sync.go b/chain/sync.go index fc0826dec..fc2ac38e8 100644 --- a/chain/sync.go +++ b/chain/sync.go @@ -643,7 +643,7 @@ loop: } func (syncer *Syncer) syncFork(ctx context.Context, from *types.TipSet, to *types.TipSet) ([]*types.TipSet, error) { - tips, err := syncer.Bsync.GetBlocks(ctx, from.Parents(), 100) + tips, err := syncer.Bsync.GetBlocks(ctx, from.Parents(), build.ForkLengthThreshold) if err != nil { return nil, err }