diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2018-10-23 17:14:47 +0800 |
---|---|---|
committer | Wei-Ning Huang <aitjcize@gmail.com> | 2018-10-23 17:14:47 +0800 |
commit | 23779823a7816d07c41fd7c135c6c0edf39182db (patch) | |
tree | 8e58408721dc0a25de858cbed101beb4b17741d0 /simulation | |
parent | 726e855384bf686b192f9d4b1c4cb0e9d006d414 (diff) | |
download | tangerine-consensus-23779823a7816d07c41fd7c135c6c0edf39182db.tar tangerine-consensus-23779823a7816d07c41fd7c135c6c0edf39182db.tar.gz tangerine-consensus-23779823a7816d07c41fd7c135c6c0edf39182db.tar.bz2 tangerine-consensus-23779823a7816d07c41fd7c135c6c0edf39182db.tar.lz tangerine-consensus-23779823a7816d07c41fd7c135c6c0edf39182db.tar.xz tangerine-consensus-23779823a7816d07c41fd7c135c6c0edf39182db.tar.zst tangerine-consensus-23779823a7816d07c41fd7c135c6c0edf39182db.zip |
core: Change interface of Application.VerifyBlock (#246)
* Change interface of Application.VerifyBlock
Diffstat (limited to 'simulation')
-rw-r--r-- | simulation/app.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/simulation/app.go b/simulation/app.go index f8bbcc6..419bb0a 100644 --- a/simulation/app.go +++ b/simulation/app.go @@ -67,8 +67,8 @@ func (a *simApp) BlockConfirmed(block types.Block) { } // VerifyBlock implements core.Application. -func (a *simApp) VerifyBlock(block *types.Block) bool { - return true +func (a *simApp) VerifyBlock(block *types.Block) types.BlockVerifyStatus { + return types.VerifyOK } // getAckedBlocks will return all unconfirmed blocks' hash with lower Height |