diff options
author | Sonic <sonic@dexon.org> | 2019-05-06 14:57:13 +0800 |
---|---|---|
committer | Sonic <sonic@dexon.org> | 2019-05-06 14:57:13 +0800 |
commit | 9c162aac1a4bc1d97d882708e361f20501b9c8ec (patch) | |
tree | 0cb08a48aff4231567c83d29632c02410c89bf22 /lds/commons.go | |
parent | 71e85172ef2886a6caa75cfe94e918417ae6a629 (diff) | |
download | dexon-9c162aac1a4bc1d97d882708e361f20501b9c8ec.tar dexon-9c162aac1a4bc1d97d882708e361f20501b9c8ec.tar.gz dexon-9c162aac1a4bc1d97d882708e361f20501b9c8ec.tar.bz2 dexon-9c162aac1a4bc1d97d882708e361f20501b9c8ec.tar.lz dexon-9c162aac1a4bc1d97d882708e361f20501b9c8ec.tar.xz dexon-9c162aac1a4bc1d97d882708e361f20501b9c8ec.tar.zst dexon-9c162aac1a4bc1d97d882708e361f20501b9c8ec.zip |
lds: rename lesCommon to ldsCommon
Diffstat (limited to 'lds/commons.go')
-rw-r--r-- | lds/commons.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lds/commons.go b/lds/commons.go index df94d35b1..29a8f8d66 100644 --- a/lds/commons.go +++ b/lds/commons.go @@ -30,8 +30,8 @@ import ( "github.com/dexon-foundation/dexon/params" ) -// lesCommons contains fields needed by both server and client. -type lesCommons struct { +// ldsCommons contains fields needed by both server and client. +type ldsCommons struct { config *eth.Config iConfig *light.IndexerConfig chainDb ethdb.Database @@ -51,7 +51,7 @@ type NodeInfo struct { } // makeProtocols creates protocol descriptors for the given LES versions. -func (c *lesCommons) makeProtocols(versions []uint) []p2p.Protocol { +func (c *ldsCommons) makeProtocols(versions []uint) []p2p.Protocol { protos := make([]p2p.Protocol, len(versions)) for i, version := range versions { version := version @@ -75,7 +75,7 @@ func (c *lesCommons) makeProtocols(versions []uint) []p2p.Protocol { } // nodeInfo retrieves some protocol metadata about the running host node. -func (c *lesCommons) nodeInfo() interface{} { +func (c *ldsCommons) nodeInfo() interface{} { var cht params.TrustedCheckpoint sections, _, _ := c.chtIndexer.Sections() sections2, _, _ := c.bloomTrieIndexer.Sections() |