diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2018-08-10 14:45:45 +0800 |
---|---|---|
committer | Wei-Ning Huang <aitjcize@gmail.com> | 2018-08-10 14:45:45 +0800 |
commit | 03917cdfa1f762849541e1bed31394340ed1f957 (patch) | |
tree | 68390624f1b6f370d18ff6fdb387794a8872f6ec /simulation | |
parent | 3cde438f074ffcead89e28b0a83964d1f1a87062 (diff) | |
download | tangerine-consensus-03917cdfa1f762849541e1bed31394340ed1f957.tar.gz tangerine-consensus-03917cdfa1f762849541e1bed31394340ed1f957.tar.zst tangerine-consensus-03917cdfa1f762849541e1bed31394340ed1f957.zip |
Add genesis block to simulation app. (#44)
Diffstat (limited to 'simulation')
-rw-r--r-- | simulation/validator.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/simulation/validator.go b/simulation/validator.go index 215088f..4bc8283 100644 --- a/simulation/validator.go +++ b/simulation/validator.go @@ -90,6 +90,7 @@ func (v *Validator) Run() { isStopped := make(chan struct{}, 2) isShutdown := make(chan struct{}) + v.app.addBlock(genesisBlock) v.BroadcastGenesisBlock(genesisBlock) go v.MsgServer(isStopped, genesisBlock) go v.CheckServerInfo(isShutdown) |