start mining way more in the past.
This commit is contained in:
parent
7b00b1828b
commit
6fb31a34b3
@ -114,8 +114,7 @@ type Ensemble struct {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewEnsemble instantiates a new blank Ensemble. This enables you to
|
// NewEnsemble instantiates a new blank Ensemble.
|
||||||
// programmatically
|
|
||||||
func NewEnsemble(t *testing.T, opts ...EnsembleOpt) *Ensemble {
|
func NewEnsemble(t *testing.T, opts ...EnsembleOpt) *Ensemble {
|
||||||
options := DefaultEnsembleOpts
|
options := DefaultEnsembleOpts
|
||||||
for _, o := range opts {
|
for _, o := range opts {
|
||||||
@ -593,7 +592,7 @@ func (n *Ensemble) generateGenesis() *genesis.Template {
|
|||||||
Accounts: n.genesis.accounts,
|
Accounts: n.genesis.accounts,
|
||||||
Miners: n.genesis.miners,
|
Miners: n.genesis.miners,
|
||||||
NetworkName: "test",
|
NetworkName: "test",
|
||||||
Timestamp: uint64(time.Now().Unix() - 10000), // some time sufficiently far in the past
|
Timestamp: uint64(time.Now().Unix() - int64(n.options.pastOffset.Seconds())),
|
||||||
VerifregRootKey: gen.DefaultVerifregRootkeyActor,
|
VerifregRootKey: gen.DefaultVerifregRootkeyActor,
|
||||||
RemainderAccount: gen.DefaultRemainderAccountActor,
|
RemainderAccount: gen.DefaultRemainderAccountActor,
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,7 @@ type ensembleOpts struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var DefaultEnsembleOpts = ensembleOpts{
|
var DefaultEnsembleOpts = ensembleOpts{
|
||||||
pastOffset: 10000 * time.Second,
|
pastOffset: 100000 * time.Second, // time sufficiently in the past to trigger catch-up mining.
|
||||||
proofType: abi.RegisteredSealProof_StackedDrg2KiBV1,
|
proofType: abi.RegisteredSealProof_StackedDrg2KiBV1,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user