use proper const
This commit is contained in:
parent
0182b804a2
commit
684e8e27fc
@ -36,7 +36,7 @@ const BlockDelay = 6
|
||||
const AllowableClockDrift = BlockDelay * 2
|
||||
|
||||
// Blocks
|
||||
const ForkLengthThreshold = 20
|
||||
const ForkLengthThreshold = 100
|
||||
|
||||
// /////
|
||||
// Proofs / Mining
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user