aboutsummaryrefslogtreecommitdiffstats
path: root/core/test
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2019-01-05 08:07:57 +0800
committerJimmy Hu <jimmy.hu@dexon.org>2019-01-05 08:07:57 +0800
commit701b19c75fe5433df0528a901c4e257eb51df34a (patch)
treee43efd0729ec2ff61d2a1eb4c10ebfe949c31eb1 /core/test
parent65f14ef166d7fd3ea30f50366d55777b54fe305f (diff)
downloadtangerine-consensus-701b19c75fe5433df0528a901c4e257eb51df34a.tar.gz
tangerine-consensus-701b19c75fe5433df0528a901c4e257eb51df34a.tar.zst
tangerine-consensus-701b19c75fe5433df0528a901c4e257eb51df34a.zip
core: add fork reporting interface to governance (#402)
Diffstat (limited to 'core/test')
-rw-r--r--core/test/governance.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/test/governance.go b/core/test/governance.go
index 769934b..05ceb62 100644
--- a/core/test/governance.go
+++ b/core/test/governance.go
@@ -231,6 +231,14 @@ func (g *Governance) IsDKGFinal(round uint64) bool {
return g.stateModule.IsDKGFinal(round, int(g.configs[round].DKGSetSize)/3*2)
}
+// ReportForkVote reports a node for forking votes.
+func (g *Governance) ReportForkVote(vote1, vote2 *types.Vote) {
+}
+
+// ReportForkBlock reports a node for forking blocks.
+func (g *Governance) ReportForkBlock(block1, block2 *types.Block) {
+}
+
//
// Test Utilities
//