completed deal
This commit is contained in:
parent
98bc576888
commit
801a4f79b9
@ -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)
|
||||
}
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ var testplans = map[string]interface{}{
|
||||
}
|
||||
|
||||
func init() {
|
||||
logging.SetLogLevel("*", "WARN")
|
||||
logging.SetLogLevel("*", "INFO")
|
||||
|
||||
build.DisableBuiltinAssets = true
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user