Skip to content

Commit 1fab063

Browse files
committed
initialize system account
1 parent 9103035 commit 1fab063

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

cmd/chainsimulator/main.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,13 @@ func startChainSimulator(ctx *cli.Context) error {
203203

204204
log.Info("simulators were initialized")
205205

206+
for shardID := uint32(0); shardID < uint32(cfg.Config.Simulator.NumOfShards); shardID++ {
207+
err = simulator.GetNodeHandler(shardID).SetKeyValueForAddress(core.SystemAccountAddress, make(map[string]string))
208+
if err != nil {
209+
return err
210+
}
211+
}
212+
206213
err = simulator.GenerateBlocks(1)
207214
if err != nil {
208215
return err

0 commit comments

Comments
 (0)