diff options
author | Wei-Ning Huang <aitjcize@gmail.com> | 2018-11-14 10:57:53 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-03-12 12:19:09 +0800 |
commit | 9919263fe225d6bbd0183fba578a84ecbac8aae6 (patch) | |
tree | eba3fb16d35cb9db8769619ba5984fc4a9bfbfa6 /light | |
parent | 9d1efe14607683825c69cce8f690e0f327c6a7b0 (diff) | |
download | dexon-9919263fe225d6bbd0183fba578a84ecbac8aae6.tar dexon-9919263fe225d6bbd0183fba578a84ecbac8aae6.tar.gz dexon-9919263fe225d6bbd0183fba578a84ecbac8aae6.tar.bz2 dexon-9919263fe225d6bbd0183fba578a84ecbac8aae6.tar.lz dexon-9919263fe225d6bbd0183fba578a84ecbac8aae6.tar.xz dexon-9919263fe225d6bbd0183fba578a84ecbac8aae6.tar.zst dexon-9919263fe225d6bbd0183fba578a84ecbac8aae6.zip |
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
Diffstat (limited to 'light')
-rw-r--r-- | light/lightchain.go | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/light/lightchain.go b/light/lightchain.go index a07cfedf7..7fbeb7b96 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 } |