From 3a84568a63f64423683a1dbb9f46cee886a39270 Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Wed, 14 Nov 2018 10:57:53 +0800 Subject: core: validate DKG set with correct nodeset in round-2 (#19) * vendor: sync consensus core * core: validate DKG set with correct nodeset in round-2 --- light/lightchain.go | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'light') diff --git a/light/lightchain.go b/light/lightchain.go index 688d5a217..7528ef5f8 100644 --- a/light/lightchain.go +++ b/light/lightchain.go @@ -534,8 +534,12 @@ func (self *LightChain) SubscribeRemovedLogsEvent(ch chan<- core.RemovedLogsEven return self.scope.Track(new(event.Feed).Subscribe(ch)) } -// GetRoundHeightMap returns the mapping between round and height. -func (self *LightChain) GetRoundHeightMap() sync.Map { - // TODO(w): fix this. - return sync.Map{} +// StateAt returns a new mutable state based on a particular point in time. +func (self *LightChain) StateAt(root common.Hash) (*state.StateDB, error) { + return nil, nil +} + +// GetRoundHeight returns the height of a given round. +func (self *LightChain) GetRoundHeight(round uint64) (uint64, bool) { + return 0, false } -- cgit v1.2.3