Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: remove chain backdating from integration tests #12558

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading