From 09f943d9d4ebd151a8c6fdbd15ca3282edbc7e94 Mon Sep 17 00:00:00 2001 From: Mission Liao Date: Fri, 12 Oct 2018 19:36:32 +0800 Subject: core: modify interface (#194) * Add a new method to notify full node about round cutting. * Modify interface to return error when preparing block --- core/nodeset-cache_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'core/nodeset-cache_test.go') diff --git a/core/nodeset-cache_test.go b/core/nodeset-cache_test.go index 6324421..73f0dee 100644 --- a/core/nodeset-cache_test.go +++ b/core/nodeset-cache_test.go @@ -40,8 +40,9 @@ func (g *testGov) Configuration(round uint64) (cfg *types.Config) { NumChains: 4, } } -func (g *testGov) CRS(round uint64) (b common.Hash) { return g.crs } -func (g *testGov) ProposeCRS([]byte) {} +func (g *testGov) CRS(round uint64) (b common.Hash) { return g.crs } +func (g *testGov) ProposeCRS([]byte) {} +func (g *testGov) NotifyRoundHeight(round, height uint64) {} func (g *testGov) NodeSet(round uint64) []crypto.PublicKey { // Randomly generating keys, and check them for verification. g.curKeys = []crypto.PublicKey{} -- cgit v1.2.3