completed deal
This commit is contained in:
parent
98bc576888
commit
801a4f79b9
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user