Skip to content

Commit

Permalink
test: remove chain backdating from integration tests
Browse files Browse the repository at this point in the history
fixes #12557
  • Loading branch information
Stebalien committed Oct 4, 2024
1 parent 0e7292a commit d777a7c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion itests/kit/ensemble.go
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,7 @@ func (n *Ensemble) generateGenesis() *genesis.Template {
Accounts: n.genesis.accounts,
Miners: n.genesis.miners,
NetworkName: "test",
Timestamp: uint64(time.Now().Unix() - int64(n.options.pastOffset.Seconds())),
Timestamp: uint64(time.Now().Unix()),
VerifregRootKey: verifRoot,
RemainderAccount: gen.DefaultRemainderAccountActor,
}
Expand Down
4 changes: 0 additions & 4 deletions itests/kit/ensemble_opts.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package kit

import (
"time"

"github.com/filecoin-project/go-state-types/abi"

"github.com/filecoin-project/lotus/build"
Expand All @@ -19,7 +17,6 @@ type genesisAccount struct {
}

type ensembleOpts struct {
pastOffset time.Duration
verifiedRoot genesisAccount
accounts []genesisAccount
mockProofs bool
Expand All @@ -28,7 +25,6 @@ type ensembleOpts struct {
}

var DefaultEnsembleOpts = ensembleOpts{
pastOffset: 10000000 * time.Second, // time sufficiently in the past to trigger catch-up mining.
upgradeSchedule: stmgr.UpgradeSchedule{{
Height: -1,
Network: buildconstants.TestNetworkVersion,
Expand Down

0 comments on commit d777a7c

Please sign in to comment.