diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2019-04-15 15:47:36 +0800 |
---|---|---|
committer | Jimmy Hu <jimmy.hu@dexon.org> | 2019-04-15 15:47:36 +0800 |
commit | baed0099c0552657c10f92d3419565133211bf7b (patch) | |
tree | 68d9f76be58e66d53b22d9cfbfbfc8adc0e50a29 | |
parent | d554efde81d4385158c039f906e213bcdfd0313b (diff) | |
download | dexon-consensus-jimmy-intf.tar.gz dexon-consensus-jimmy-intf.tar.zst dexon-consensus-jimmy-intf.zip |
core: Change VerifyBlock interfacejimmy-intf
-rw-r--r-- | core/interfaces.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/interfaces.go b/core/interfaces.go index c88b3dc..2aaccda 100644 --- a/core/interfaces.go +++ b/core/interfaces.go @@ -36,7 +36,7 @@ type Application interface { PrepareWitness(consensusHeight uint64) (types.Witness, error) // VerifyBlock verifies if the block is valid. - VerifyBlock(block *types.Block) types.BlockVerifyStatus + VerifyBlock(block *types.Block) (<-chan types.BlockVerifyStatus, chan<- struct{}) // BlockConfirmed is called when a block is confirmed and added to lattice. BlockConfirmed(block types.Block) |