diff options
author | Mission Liao <mission.liao@dexon.org> | 2018-10-11 19:33:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-11 19:33:25 +0800 |
commit | 490fa1e9ce2b661e4c8b612bd53f20123346353b (patch) | |
tree | 2ef4a4fabb1e21d46ef3e47538dadfeecdf2cf4d /core/interfaces.go | |
parent | f3e9eb613c7e8dec6b8c6b1b0a20ddbec4e91a9c (diff) | |
download | dexon-consensus-490fa1e9ce2b661e4c8b612bd53f20123346353b.tar dexon-consensus-490fa1e9ce2b661e4c8b612bd53f20123346353b.tar.gz dexon-consensus-490fa1e9ce2b661e4c8b612bd53f20123346353b.tar.bz2 dexon-consensus-490fa1e9ce2b661e4c8b612bd53f20123346353b.tar.lz dexon-consensus-490fa1e9ce2b661e4c8b612bd53f20123346353b.tar.xz dexon-consensus-490fa1e9ce2b661e4c8b612bd53f20123346353b.tar.zst dexon-consensus-490fa1e9ce2b661e4c8b612bd53f20123346353b.zip |
core: change interface (#193)
* Extract types.FinalizationResult
* Change interface:
- Application.BlockConfirmed returns whole block.
- Application.BlockDelivered returns partial result.
Diffstat (limited to 'core/interfaces.go')
-rw-r--r-- | core/interfaces.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/interfaces.go b/core/interfaces.go index 98cbb4d..7a5859e 100644 --- a/core/interfaces.go +++ b/core/interfaces.go @@ -38,10 +38,10 @@ type Application interface { VerifyBlock(block *types.Block) bool // BlockConfirmed is called when a block is confirmed and added to lattice. - BlockConfirmed(blockHash common.Hash) + BlockConfirmed(block types.Block) // BlockDelivered is called when a block is add to the compaction chain. - BlockDelivered(block types.Block) + BlockDelivered(blockHash common.Hash, result types.FinalizationResult) } // Debug describes the application interface that requires |