aboutsummaryrefslogtreecommitdiffstats
path: root/core/test/governance.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-08-30 10:45:06 +0800
committerGitHub <noreply@github.com>2018-08-30 10:45:06 +0800
commit2681e011bd48ec107dedae9c7dcbc0810673298c (patch)
tree11dbe2b7ff285d3fa57d983e1103ccb61bfe122c /core/test/governance.go
parentca3b30a62ff85090c1a721602e8b202e6ae9a2bd (diff)
downloaddexon-consensus-2681e011bd48ec107dedae9c7dcbc0810673298c.tar
dexon-consensus-2681e011bd48ec107dedae9c7dcbc0810673298c.tar.gz
dexon-consensus-2681e011bd48ec107dedae9c7dcbc0810673298c.tar.bz2
dexon-consensus-2681e011bd48ec107dedae9c7dcbc0810673298c.tar.lz
dexon-consensus-2681e011bd48ec107dedae9c7dcbc0810673298c.tar.xz
dexon-consensus-2681e011bd48ec107dedae9c7dcbc0810673298c.tar.zst
dexon-consensus-2681e011bd48ec107dedae9c7dcbc0810673298c.zip
core: Leader Selector. (#80)
Diffstat (limited to 'core/test/governance.go')
-rw-r--r--core/test/governance.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/test/governance.go b/core/test/governance.go
index 58ab582..8df7e80 100644
--- a/core/test/governance.go
+++ b/core/test/governance.go
@@ -88,6 +88,16 @@ func (g *Governance) GetConfigurationChangeEvent(
return nil
}
+// GetGenesisCRS returns the CRS string.
+func (g *Governance) GetGenesisCRS() string {
+ return "🆕 DEXON"
+}
+
+// GetAgreementK returns number of blocks for a CRS.
+func (g *Governance) GetAgreementK() int {
+ return 20
+}
+
// GetPrivateKey return the private key for that validator, this function
// is a test utility and not a general core.Governance interface.
func (g *Governance) GetPrivateKey(