diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2018-08-10 13:40:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-10 13:40:57 +0800 |
commit | b88d8ddb0eaf48fac1fdf10dcd7db4dc896e6538 (patch) | |
tree | 9595ccf912234c24674138705d2cc2b463212905 /simulation/validator.go | |
parent | 99d9591e5f0af54bf06f41cfd2658cfcc9ee6436 (diff) | |
download | tangerine-consensus-b88d8ddb0eaf48fac1fdf10dcd7db4dc896e6538.tar tangerine-consensus-b88d8ddb0eaf48fac1fdf10dcd7db4dc896e6538.tar.gz tangerine-consensus-b88d8ddb0eaf48fac1fdf10dcd7db4dc896e6538.tar.bz2 tangerine-consensus-b88d8ddb0eaf48fac1fdf10dcd7db4dc896e6538.tar.lz tangerine-consensus-b88d8ddb0eaf48fac1fdf10dcd7db4dc896e6538.tar.xz tangerine-consensus-b88d8ddb0eaf48fac1fdf10dcd7db4dc896e6538.tar.zst tangerine-consensus-b88d8ddb0eaf48fac1fdf10dcd7db4dc896e6538.zip |
core: Deliver only Hash to Application. (#43)
Diffstat (limited to 'simulation/validator.go')
-rw-r--r-- | simulation/validator.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/simulation/validator.go b/simulation/validator.go index b4e6127..8b59247 100644 --- a/simulation/validator.go +++ b/simulation/validator.go @@ -128,6 +128,7 @@ func (v *Validator) MsgServer(isStopped chan struct{}) { switch val := msg.(type) { case *types.Block: + v.app.addBlock(val) if v.consensus != nil { if err := v.consensus.ProcessBlock(val); err != nil { fmt.Println(err) @@ -196,6 +197,7 @@ ProposingBlockLoop: if err := v.consensus.PrepareBlock(block); err != nil { panic(err) } + v.app.addBlock(block) if err := v.consensus.ProcessBlock(block); err != nil { fmt.Println(err) //panic(err) |