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 /core/test | |
parent | 726e855384bf686b192f9d4b1c4cb0e9d006d414 (diff) | |
download | dexon-consensus-23779823a7816d07c41fd7c135c6c0edf39182db.tar dexon-consensus-23779823a7816d07c41fd7c135c6c0edf39182db.tar.gz dexon-consensus-23779823a7816d07c41fd7c135c6c0edf39182db.tar.bz2 dexon-consensus-23779823a7816d07c41fd7c135c6c0edf39182db.tar.lz dexon-consensus-23779823a7816d07c41fd7c135c6c0edf39182db.tar.xz dexon-consensus-23779823a7816d07c41fd7c135c6c0edf39182db.tar.zst dexon-consensus-23779823a7816d07c41fd7c135c6c0edf39182db.zip |
core: Change interface of Application.VerifyBlock (#246)
* Change interface of Application.VerifyBlock
Diffstat (limited to 'core/test')
-rw-r--r-- | core/test/app.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/test/app.go b/core/test/app.go index a48b3c8..ba949b3 100644 --- a/core/test/app.go +++ b/core/test/app.go @@ -109,8 +109,8 @@ func (app *App) PrepareWitness(height uint64) (types.Witness, error) { } // VerifyBlock implements Application. -func (app *App) VerifyBlock(block *types.Block) bool { - return true +func (app *App) VerifyBlock(block *types.Block) types.BlockVerifyStatus { + return types.VerifyOK } // BlockConfirmed implements Application interface. |