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

fix: testground build was broken #10086

Merged
merged 1 commit into from
Jan 20, 2023
Merged
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
6 changes: 3 additions & 3 deletions build/params_testground.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ var (

AllowableClockDriftSecs = uint64(1)

Finality = policy.ChainFinality
ForkLengthThreshold = Finality

SlashablePowerDelay = 20
InteractivePoRepConfidence = 6

Expand Down Expand Up @@ -130,6 +127,9 @@ var (
GenesisFile = ""
)

const Finality = policy.ChainFinality
const ForkLengthThreshold = Finality

const BootstrapPeerThreshold = 1

// ChainId defines the chain ID used in the Ethereum JSON-RPC endpoint.
Expand Down
4 changes: 2 additions & 2 deletions chain/store/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/filecoin-project/lotus/chain/types"
)

const TIPSETKEY_BACKFILL_RANGE = 2 * build.Finality
const TipsetkeyBackfillRange = 2 * build.Finality

func (cs *ChainStore) UnionStore() bstore.Blockstore {
return bstore.Union(cs.stateBlockstore, cs.chainBlockstore)
Expand Down Expand Up @@ -116,7 +116,7 @@ func (cs *ChainStore) Import(ctx context.Context, r io.Reader) (*types.TipSet, e
}

ts := root
for i := 0; i < int(TIPSETKEY_BACKFILL_RANGE); i++ {
for i := 0; i < int(TipsetkeyBackfillRange); i++ {
err = cs.PersistTipset(ctx, ts)
if err != nil {
return nil, err
Expand Down