Make paych tests pass

This commit is contained in:
Aayush Rajasekaran 2020-09-04 18:41:33 -04:00
parent 257c483b5b
commit bdb2bf7802
2 changed files with 7 additions and 1 deletions

View File

@ -5,6 +5,7 @@ import (
"context" "context"
"flag" "flag"
"fmt" "fmt"
"github.com/filecoin-project/specs-actors/actors/builtin/power"
"os" "os"
"regexp" "regexp"
"strconv" "strconv"
@ -42,6 +43,9 @@ func init() {
abi.RegisteredSealProof_StackedDrg2KiBV1: {}, abi.RegisteredSealProof_StackedDrg2KiBV1: {},
} }
verifreg.MinVerifiedDealSize = big.NewInt(256) verifreg.MinVerifiedDealSize = big.NewInt(256)
power.InitialQAPowerEstimatePosition = big.Zero()
power.InitialQAPowerEstimateVelocity = big.Zero()
} }
// TestPaymentChannels does a basic test to exercise the payment channel CLI // TestPaymentChannels does a basic test to exercise the payment channel CLI

View File

@ -421,10 +421,12 @@ func (s *WindowPoStScheduler) runPost(ctx context.Context, di miner.DeadlineInfo
elapsed := time.Since(tsStart) elapsed := time.Since(tsStart)
commRand, err := s.api.ChainGetRandomnessFromTickets(ctx, ts.Key(), crypto.DomainSeparationTag_PoStChainCommit, di.Challenge, nil) commEpoch := di.Open
commRand, err := s.api.ChainGetRandomnessFromTickets(ctx, ts.Key(), crypto.DomainSeparationTag_PoStChainCommit, commEpoch, nil)
if err != nil { if err != nil {
return nil, xerrors.Errorf("failed to get chain randomness for windowPost (ts=%d; deadline=%d): %w", ts.Height(), di, err) return nil, xerrors.Errorf("failed to get chain randomness for windowPost (ts=%d; deadline=%d): %w", ts.Height(), di, err)
} }
params.ChainCommitEpoch = commEpoch
params.ChainCommitRand = commRand params.ChainCommitRand = commRand
log.Infow("submitting window PoSt", "elapsed", elapsed) log.Infow("submitting window PoSt", "elapsed", elapsed)