aboutsummaryrefslogtreecommitdiffstats
path: root/light
diff options
context:
space:
mode:
authorWei-Ning Huang <aitjcize@gmail.com>2018-11-14 10:57:53 +0800
committerWei-Ning Huang <w@dexon.org>2018-12-19 20:54:27 +0800
commit58490067c97e072678540ba5a5fcb7c34b09e04a (patch)
treec820cd9b900f2b3533571f656b35d8fdd8e60a6b /light
parent95e89d44a3d9ffd300aa2cb7519b45cea155c89b (diff)
downloaddexon-58490067c97e072678540ba5a5fcb7c34b09e04a.tar
dexon-58490067c97e072678540ba5a5fcb7c34b09e04a.tar.gz
dexon-58490067c97e072678540ba5a5fcb7c34b09e04a.tar.bz2
dexon-58490067c97e072678540ba5a5fcb7c34b09e04a.tar.lz
dexon-58490067c97e072678540ba5a5fcb7c34b09e04a.tar.xz
dexon-58490067c97e072678540ba5a5fcb7c34b09e04a.tar.zst
dexon-58490067c97e072678540ba5a5fcb7c34b09e04a.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.go12
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
}