aboutsummaryrefslogtreecommitdiffstats
path: root/lds
diff options
context:
space:
mode:
authorSonic <sonic@dexon.org>2019-05-06 15:26:13 +0800
committerSonic <sonic@dexon.org>2019-05-06 15:26:13 +0800
commitea281c9a6755b819f1b625f6b1034aeb52e42dcb (patch)
treef34eef987bc048c71f9a6605acdd462ed8e60b6f /lds
parent99d60d31409725d1cf69c00ff9e738534ab3c39a (diff)
downloaddexon-ea281c9a6755b819f1b625f6b1034aeb52e42dcb.tar
dexon-ea281c9a6755b819f1b625f6b1034aeb52e42dcb.tar.gz
dexon-ea281c9a6755b819f1b625f6b1034aeb52e42dcb.tar.bz2
dexon-ea281c9a6755b819f1b625f6b1034aeb52e42dcb.tar.lz
dexon-ea281c9a6755b819f1b625f6b1034aeb52e42dcb.tar.xz
dexon-ea281c9a6755b819f1b625f6b1034aeb52e42dcb.tar.zst
dexon-ea281c9a6755b819f1b625f6b1034aeb52e42dcb.zip
fixup! lds: rename LightEthereum to LightDexon
Diffstat (limited to 'lds')
-rw-r--r--lds/api_backend.go2
-rw-r--r--lds/backend.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/lds/api_backend.go b/lds/api_backend.go
index b4700ff3d..56dfc87aa 100644
--- a/lds/api_backend.go
+++ b/lds/api_backend.go
@@ -173,7 +173,7 @@ func (b *LdsApiBackend) Downloader() ethapi.Downloader {
}
func (b *LdsApiBackend) ProtocolVersion() int {
- return b.dex.LesVersion() + 10000
+ return b.dex.LdsVersion() + 10000
}
func (b *LdsApiBackend) SuggestPrice(ctx context.Context) (*big.Int, error) {
diff --git a/lds/backend.go b/lds/backend.go
index 413e3ca66..ef222aec5 100644
--- a/lds/backend.go
+++ b/lds/backend.go
@@ -218,7 +218,7 @@ func (s *LightDexon) ResetWithGenesisBlock(gb *types.Block) {
func (s *LightDexon) BlockChain() *light.LightChain { return s.blockchain }
func (s *LightDexon) TxPool() *light.TxPool { return s.txPool }
func (s *LightDexon) Engine() consensus.Engine { return s.engine }
-func (s *LightDexon) LesVersion() int { return int(ClientProtocolVersions[0]) }
+func (s *LightDexon) LdsVersion() int { return int(ClientProtocolVersions[0]) }
func (s *LightDexon) Downloader() ethapi.Downloader { return s.protocolManager.downloader }
func (s *LightDexon) EventMux() *event.TypeMux { return s.eventMux }