insecure post validation

This commit is contained in:
Anton Evangelatov 2020-06-24 17:39:37 +02:00
parent bb758854fb
commit 98bc576888
2 changed files with 7 additions and 8 deletions

View File

@ -82,7 +82,7 @@ func runBaselineMiner(t *TestEnvironment) error {
go func() {
defer close(done)
for mine {
time.Sleep(10 * time.Second)
time.Sleep(1000 * time.Millisecond)
t.RecordMessage("mine one block")
if err := miner.MineOne(ctx, func(bool) {}); err != nil {
panic(err)
@ -201,7 +201,7 @@ func startDeal(ctx context.Context, minerActorAddr address.Address, client *impl
Wallet: addr,
Miner: minerActorAddr,
EpochPrice: types.NewInt(1000000),
MinBlocksDuration: 100,
MinBlocksDuration: 1000,
})
if err != nil {
panic(err)

View File

@ -2,6 +2,7 @@ package main
import (
"fmt"
"os"
"github.com/filecoin-project/lotus/build"
"github.com/filecoin-project/specs-actors/actors/abi"
@ -20,12 +21,7 @@ var testplans = map[string]interface{}{
}
func init() {
logging.SetLogLevel("vm", "WARN")
logging.SetLogLevel("miner", "WARN")
logging.SetLogLevel("chainstore", "WARN")
logging.SetLogLevel("chain", "WARN")
logging.SetLogLevel("sub", "WARN")
logging.SetLogLevel("storageminer", "WARN")
logging.SetLogLevel("*", "WARN")
build.DisableBuiltinAssets = true
@ -35,6 +31,9 @@ func init() {
abi.RegisteredSealProof_StackedDrg2KiBV1: {},
}
verifreg.MinVerifiedDealSize = big.NewInt(256)
build.InsecurePoStValidation = true
os.Setenv("BELLMAN_NO_GPU", "1")
}
func main() {