aboutsummaryrefslogtreecommitdiffstats
path: root/eth/backend.go
diff options
context:
space:
mode:
authorkiel barry <kiel.j.barry@gmail.com>2018-05-09 15:59:00 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-05-09 15:59:00 +0800
commit4747aad160ed3721a70a133105c474cb3b66519e (patch)
treea55bf59f020b131b77943d7a1b0ecdefff2f01bd /eth/backend.go
parent4ea493e7eb9fa3b3695a22487de2605e8da1d2fa (diff)
downloadgo-tangerine-4747aad160ed3721a70a133105c474cb3b66519e.tar
go-tangerine-4747aad160ed3721a70a133105c474cb3b66519e.tar.gz
go-tangerine-4747aad160ed3721a70a133105c474cb3b66519e.tar.bz2
go-tangerine-4747aad160ed3721a70a133105c474cb3b66519e.tar.lz
go-tangerine-4747aad160ed3721a70a133105c474cb3b66519e.tar.xz
go-tangerine-4747aad160ed3721a70a133105c474cb3b66519e.tar.zst
go-tangerine-4747aad160ed3721a70a133105c474cb3b66519e.zip
eth: golint fixes to variable names (#16711)
Diffstat (limited to 'eth/backend.go')
-rw-r--r--eth/backend.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/eth/backend.go b/eth/backend.go
index e4c5fef3e..ea70e3826 100644
--- a/eth/backend.go
+++ b/eth/backend.go
@@ -82,7 +82,7 @@ type Ethereum struct {
bloomRequests chan chan *bloombits.Retrieval // Channel receiving bloom data retrieval requests
bloomIndexer *core.ChainIndexer // Bloom indexer operating during block imports
- ApiBackend *EthApiBackend
+ APIBackend *EthAPIBackend
miner *miner.Miner
gasPrice *big.Int
@@ -169,12 +169,12 @@ func New(ctx *node.ServiceContext, config *Config) (*Ethereum, error) {
eth.miner = miner.New(eth, eth.chainConfig, eth.EventMux(), eth.engine)
eth.miner.SetExtra(makeExtraData(config.ExtraData))
- eth.ApiBackend = &EthApiBackend{eth, nil}
+ eth.APIBackend = &EthAPIBackend{eth, nil}
gpoParams := config.GPO
if gpoParams.Default == nil {
gpoParams.Default = config.GasPrice
}
- eth.ApiBackend.gpo = gasprice.NewOracle(eth.ApiBackend, gpoParams)
+ eth.APIBackend.gpo = gasprice.NewOracle(eth.APIBackend, gpoParams)
return eth, nil
}
@@ -242,7 +242,7 @@ func CreateConsensusEngine(ctx *node.ServiceContext, config *ethash.Config, chai
// APIs returns the collection of RPC services the ethereum package offers.
// NOTE, some of these services probably need to be moved to somewhere else.
func (s *Ethereum) APIs() []rpc.API {
- apis := ethapi.GetAPIs(s.ApiBackend)
+ apis := ethapi.GetAPIs(s.APIBackend)
// Append any APIs exposed explicitly by the consensus engine
apis = append(apis, s.engine.APIs(s.BlockChain())...)
@@ -272,7 +272,7 @@ func (s *Ethereum) APIs() []rpc.API {
}, {
Namespace: "eth",
Version: "1.0",
- Service: filters.NewPublicFilterAPI(s.ApiBackend, false),
+ Service: filters.NewPublicFilterAPI(s.APIBackend, false),
Public: true,
}, {
Namespace: "admin",