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@byzantine-lab.io>2019-06-12 17:27:18 +0800
commit070647ec674c96582ebe93dadeefe017964c0488 (patch)
treecf14e337a1f306adc15ccafa4086f2745f8a4093 /light
parentcbb7cc20f824fd96279a0c14eb5d0a2187347955 (diff)
downloadgo-tangerine-070647ec674c96582ebe93dadeefe017964c0488.tar
go-tangerine-070647ec674c96582ebe93dadeefe017964c0488.tar.gz
go-tangerine-070647ec674c96582ebe93dadeefe017964c0488.tar.bz2
go-tangerine-070647ec674c96582ebe93dadeefe017964c0488.tar.lz
go-tangerine-070647ec674c96582ebe93dadeefe017964c0488.tar.xz
go-tangerine-070647ec674c96582ebe93dadeefe017964c0488.tar.zst
go-tangerine-070647ec674c96582ebe93dadeefe017964c0488.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 645f41ef0..f4a6b7a27 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
}