completed deal

This commit is contained in:
Anton Evangelatov 2020-06-24 18:15:52 +02:00
parent 98bc576888
commit 801a4f79b9
3 changed files with 10 additions and 3 deletions

View File

@ -84,7 +84,14 @@ func runBaselineMiner(t *TestEnvironment) error {
for mine { for mine {
time.Sleep(1000 * time.Millisecond) time.Sleep(1000 * time.Millisecond)
t.RecordMessage("mine one block") 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) panic(err)
} }
} }

View File

@ -21,7 +21,7 @@ var testplans = map[string]interface{}{
} }
func init() { func init() {
logging.SetLogLevel("*", "WARN") logging.SetLogLevel("*", "INFO")
build.DisableBuiltinAssets = true build.DisableBuiltinAssets = true

View File

@ -133,7 +133,7 @@ func prepareBootstrapper(t *TestEnvironment) (*Node, error) {
genesisTemplate := genesis.Template{ genesisTemplate := genesis.Template{
Accounts: genesisActors, Accounts: genesisActors,
Miners: genesisMiners, 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 // dump the genesis block