diff options
author | Wei-Ning Huang <w@dexon.org> | 2019-01-04 23:59:17 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:27:21 +0800 |
commit | f2865a49b3a18f7d02886a831a14d99033bf43ae (patch) | |
tree | d6f3d8fab446222fe3d5f4d3bea557a9f279ee30 /vendor/github.com/dexon-foundation/dexon-consensus/core/interfaces.go | |
parent | 30950e88c8c96b583b34da0a8ec1e2b44b4e1b0b (diff) | |
download | go-tangerine-f2865a49b3a18f7d02886a831a14d99033bf43ae.tar go-tangerine-f2865a49b3a18f7d02886a831a14d99033bf43ae.tar.gz go-tangerine-f2865a49b3a18f7d02886a831a14d99033bf43ae.tar.bz2 go-tangerine-f2865a49b3a18f7d02886a831a14d99033bf43ae.tar.lz go-tangerine-f2865a49b3a18f7d02886a831a14d99033bf43ae.tar.xz go-tangerine-f2865a49b3a18f7d02886a831a14d99033bf43ae.tar.zst go-tangerine-f2865a49b3a18f7d02886a831a14d99033bf43ae.zip |
vendor: sync to latest core (#129)
Diffstat (limited to 'vendor/github.com/dexon-foundation/dexon-consensus/core/interfaces.go')
-rw-r--r-- | vendor/github.com/dexon-foundation/dexon-consensus/core/interfaces.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vendor/github.com/dexon-foundation/dexon-consensus/core/interfaces.go b/vendor/github.com/dexon-foundation/dexon-consensus/core/interfaces.go index 20770328c..aa87e38f7 100644 --- a/vendor/github.com/dexon-foundation/dexon-consensus/core/interfaces.go +++ b/vendor/github.com/dexon-foundation/dexon-consensus/core/interfaces.go @@ -144,6 +144,12 @@ type Governance interface { // IsDKGFinal checks if DKG is final. IsDKGFinal(round uint64) bool + + // ReportForkVote reports a node for forking votes. + ReportForkVote(vote1, vote2 *types.Vote) + + // ReportForkBlock reports a node for forking blocks. + ReportForkBlock(block1, block2 *types.Block) } // Ticker define the capability to tick by interval. |