From 658662d42d30c58e4f3951f5c1e99688de295397 Mon Sep 17 00:00:00 2001 From: Jimmy Hu Date: Tue, 2 Oct 2018 11:45:34 +0800 Subject: core: run DKG and CRS at background. (#155) --- core/nodeset-cache_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/nodeset-cache_test.go') diff --git a/core/nodeset-cache_test.go b/core/nodeset-cache_test.go index 947e239..def8450 100644 --- a/core/nodeset-cache_test.go +++ b/core/nodeset-cache_test.go @@ -20,6 +20,7 @@ package core import ( "testing" + "github.com/dexon-foundation/dexon-consensus-core/common" "github.com/dexon-foundation/dexon-consensus-core/core/crypto" "github.com/dexon-foundation/dexon-consensus-core/core/crypto/ecdsa" "github.com/dexon-foundation/dexon-consensus-core/core/types" @@ -32,7 +33,7 @@ type testGov struct { } func (g *testGov) GetConfiguration(round uint64) (cfg *types.Config) { return } -func (g *testGov) GetCRS(round uint64) (b []byte) { return } +func (g *testGov) GetCRS(round uint64) (b common.Hash) { return } func (g *testGov) ProposeCRS(uint64, []byte) {} func (g *testGov) GetNodeSet(round uint64) []crypto.PublicKey { // Randomly generating keys, and check them for verification. -- cgit v1.2.3