diff options
author | Nick Johnson <arachnid@notdot.net> | 2017-06-27 23:15:29 +0800 |
---|---|---|
committer | Nick Johnson <arachnid@notdot.net> | 2017-06-28 22:58:41 +0800 |
commit | 055095798911e3c6f2e210220cb7ece1b71f6517 (patch) | |
tree | 27f22dcec90015971a464b15ca8d73736756906d /light/lightchain.go | |
parent | dfd076244dd0c2d809f9dd0080feab167ba9560c (diff) | |
download | go-tangerine-055095798911e3c6f2e210220cb7ece1b71f6517.tar go-tangerine-055095798911e3c6f2e210220cb7ece1b71f6517.tar.gz go-tangerine-055095798911e3c6f2e210220cb7ece1b71f6517.tar.bz2 go-tangerine-055095798911e3c6f2e210220cb7ece1b71f6517.tar.lz go-tangerine-055095798911e3c6f2e210220cb7ece1b71f6517.tar.xz go-tangerine-055095798911e3c6f2e210220cb7ece1b71f6517.tar.zst go-tangerine-055095798911e3c6f2e210220cb7ece1b71f6517.zip |
eth, les, light: Refactor downloader to use blockchain interface
Diffstat (limited to 'light/lightchain.go')
-rw-r--r-- | light/lightchain.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/light/lightchain.go b/light/lightchain.go index 87436f4a5..ec7ca3a0c 100644 --- a/light/lightchain.go +++ b/light/lightchain.go @@ -389,6 +389,21 @@ func (self *LightChain) CurrentHeader() *types.Header { return self.hc.CurrentHeader() } +// CurrentBlock exists for interface compatibility and always returns nil +func (self *LightChain) CurrentBlock() *types.Block { + return nil +} + +// CurrentFastBlock exists for interface compatibility and always returns nil +func (self *LightChain) CurrentFastBlock() *types.Block { + return nil +} + +// FastSyncCommitHead exists for interface compatibility and does nothing +func (self *LightChain) FastSyncCommitHead(h common.Hash) error { + return nil +} + // GetTd retrieves a block's total difficulty in the canonical chain from the // database by hash and number, caching it if found. func (self *LightChain) GetTd(hash common.Hash, number uint64) *big.Int { |