From 2681e011bd48ec107dedae9c7dcbc0810673298c Mon Sep 17 00:00:00 2001 From: Jimmy Hu Date: Thu, 30 Aug 2018 10:45:06 +0800 Subject: core: Leader Selector. (#80) --- core/test/governance.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'core/test/governance.go') 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( -- cgit v1.2.3