diff options
author | zelig <viktor.tron@gmail.com> | 2015-03-18 05:01:47 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2015-03-18 05:01:47 +0800 |
commit | 7dbbe1bedce449edfdc54da1af05d3f50606856a (patch) | |
tree | 10e7117c721dca1b494cc6e6cdf5fb5f2b67052c /eth | |
parent | 187241831629b7c3e210db764cda1d9127ab48e5 (diff) | |
download | dexon-7dbbe1bedce449edfdc54da1af05d3f50606856a.tar dexon-7dbbe1bedce449edfdc54da1af05d3f50606856a.tar.gz dexon-7dbbe1bedce449edfdc54da1af05d3f50606856a.tar.bz2 dexon-7dbbe1bedce449edfdc54da1af05d3f50606856a.tar.lz dexon-7dbbe1bedce449edfdc54da1af05d3f50606856a.tar.xz dexon-7dbbe1bedce449edfdc54da1af05d3f50606856a.tar.zst dexon-7dbbe1bedce449edfdc54da1af05d3f50606856a.zip |
eth/backend: remove spurious and incorrent PeerInfo()
Diffstat (limited to 'eth')
-rw-r--r-- | eth/backend.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/eth/backend.go b/eth/backend.go index 18093008b..16be8793a 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -10,11 +10,11 @@ import ( "github.com/ethereum/ethash" "github.com/ethereum/go-ethereum/accounts" "github.com/ethereum/go-ethereum/blockpool" + "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core" "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/ethdb" - "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/event" "github.com/ethereum/go-ethereum/logger" "github.com/ethereum/go-ethereum/miner" @@ -304,12 +304,11 @@ func (s *Ethereum) TxPool() *core.TxPool { return s.txPool } func (s *Ethereum) BlockPool() *blockpool.BlockPool { return s.blockPool } func (s *Ethereum) Whisper() *whisper.Whisper { return s.whisper } func (s *Ethereum) EventMux() *event.TypeMux { return s.eventMux } -func (s *Ethereum) BlockDb() common.Database { return s.blockDb } -func (s *Ethereum) StateDb() common.Database { return s.stateDb } -func (s *Ethereum) ExtraDb() common.Database { return s.extraDb } +func (s *Ethereum) BlockDb() common.Database { return s.blockDb } +func (s *Ethereum) StateDb() common.Database { return s.stateDb } +func (s *Ethereum) ExtraDb() common.Database { return s.extraDb } func (s *Ethereum) IsListening() bool { return true } // Always listening func (s *Ethereum) PeerCount() int { return s.net.PeerCount() } -func (s *Ethereum) PeerInfo() int { return s.net.PeerCount() } func (s *Ethereum) Peers() []*p2p.Peer { return s.net.Peers() } func (s *Ethereum) MaxPeers() int { return s.net.MaxPeers } func (s *Ethereum) Version() string { return s.version } |