From c27f3deaddbd954ada56a227fe61244633f2bc67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Kripalani?= Date: Mon, 14 Jun 2021 18:58:12 +0100 Subject: [PATCH] start mining way more in the past. --- itests/kit2/ensemble.go | 5 ++--- itests/kit2/ensemble_opts.go | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/itests/kit2/ensemble.go b/itests/kit2/ensemble.go index 5d12c83e1..751066de3 100644 --- a/itests/kit2/ensemble.go +++ b/itests/kit2/ensemble.go @@ -114,8 +114,7 @@ type Ensemble struct { } } -// NewEnsemble instantiates a new blank Ensemble. This enables you to -// programmatically +// NewEnsemble instantiates a new blank Ensemble. func NewEnsemble(t *testing.T, opts ...EnsembleOpt) *Ensemble { options := DefaultEnsembleOpts for _, o := range opts { @@ -593,7 +592,7 @@ func (n *Ensemble) generateGenesis() *genesis.Template { Accounts: n.genesis.accounts, Miners: n.genesis.miners, 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, RemainderAccount: gen.DefaultRemainderAccountActor, } diff --git a/itests/kit2/ensemble_opts.go b/itests/kit2/ensemble_opts.go index 724113bdc..a5a8c733f 100644 --- a/itests/kit2/ensemble_opts.go +++ b/itests/kit2/ensemble_opts.go @@ -15,7 +15,7 @@ type ensembleOpts struct { } 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, }