From 801a4f79b90306eb646df1c09f0ce541899a4109 Mon Sep 17 00:00:00 2001 From: Anton Evangelatov Date: Wed, 24 Jun 2020 18:15:52 +0200 Subject: [PATCH] completed deal --- lotus-soup/baseline.go | 9 ++++++++- lotus-soup/main.go | 2 +- lotus-soup/node.go | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/lotus-soup/baseline.go b/lotus-soup/baseline.go index c7d9d8a2b..ad00a4fda 100644 --- a/lotus-soup/baseline.go +++ b/lotus-soup/baseline.go @@ -84,7 +84,14 @@ func runBaselineMiner(t *TestEnvironment) error { for mine { time.Sleep(1000 * time.Millisecond) t.RecordMessage("mine one block") - if err := miner.MineOne(ctx, func(bool) {}); err != nil { + + // wait and synchronise + + if err := miner.MineOne(ctx, func(bool) { + + // after a block is mined + + }); err != nil { panic(err) } } diff --git a/lotus-soup/main.go b/lotus-soup/main.go index 135c36d5d..cb1018a27 100644 --- a/lotus-soup/main.go +++ b/lotus-soup/main.go @@ -21,7 +21,7 @@ var testplans = map[string]interface{}{ } func init() { - logging.SetLogLevel("*", "WARN") + logging.SetLogLevel("*", "INFO") build.DisableBuiltinAssets = true diff --git a/lotus-soup/node.go b/lotus-soup/node.go index e7527084c..cd0c87ac5 100644 --- a/lotus-soup/node.go +++ b/lotus-soup/node.go @@ -133,7 +133,7 @@ func prepareBootstrapper(t *TestEnvironment) (*Node, error) { genesisTemplate := genesis.Template{ Accounts: genesisActors, Miners: genesisMiners, - Timestamp: uint64(time.Now().Unix() - 1000), // this needs to be in the past + Timestamp: uint64(time.Now().Unix() - 10000), // this needs to be in the past } // dump the genesis block