diff options
author | Felix Lange <fjl@twurst.com> | 2015-03-04 23:54:36 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-03-04 23:54:36 +0800 |
commit | 215c763d53fc8e06e8c9807875eacaccf3ef45fa (patch) | |
tree | 3b6b9f6fc2448af8be2dc7e98a698b055dc0bb56 /eth/backend.go | |
parent | 429828cd9205a8db0024652fd9da96cfbdaeae86 (diff) | |
download | dexon-215c763d53fc8e06e8c9807875eacaccf3ef45fa.tar dexon-215c763d53fc8e06e8c9807875eacaccf3ef45fa.tar.gz dexon-215c763d53fc8e06e8c9807875eacaccf3ef45fa.tar.bz2 dexon-215c763d53fc8e06e8c9807875eacaccf3ef45fa.tar.lz dexon-215c763d53fc8e06e8c9807875eacaccf3ef45fa.tar.xz dexon-215c763d53fc8e06e8c9807875eacaccf3ef45fa.tar.zst dexon-215c763d53fc8e06e8c9807875eacaccf3ef45fa.zip |
eth, p2p: delete p2p.Blacklist
It is unused and untested right now. We can
bring it back later if required.
Diffstat (limited to 'eth/backend.go')
-rw-r--r-- | eth/backend.go | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/eth/backend.go b/eth/backend.go index 5cd7b308f..8b76e0ca3 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -108,11 +108,9 @@ func (cfg *Config) nodeKey() (*ecdsa.PrivateKey, error) { type Ethereum struct { // Channel for shutting down the ethereum shutdownChan chan bool - quit chan bool // DB interface - db ethutil.Database - blacklist p2p.Blacklist + db ethutil.Database //*** SERVICES *** // State manager for processing new blocks and managing the over all states @@ -170,10 +168,8 @@ func New(config *Config) (*Ethereum, error) { eth := &Ethereum{ shutdownChan: make(chan bool), - quit: make(chan bool), db: db, keyManager: keyManager, - blacklist: p2p.NewBlacklist(), eventMux: &event.TypeMux{}, logger: ethlogger, } @@ -206,7 +202,6 @@ func New(config *Config) (*Ethereum, error) { Name: config.Name, MaxPeers: config.MaxPeers, Protocols: protocols, - Blacklist: eth.blacklist, NAT: config.NAT, NoDial: !config.Dial, BootstrapNodes: config.parseBootNodes(), @@ -280,8 +275,6 @@ func (s *Ethereum) Stop() { // Close the database defer s.db.Close() - close(s.quit) - s.txSub.Unsubscribe() // quits txBroadcastLoop s.blockSub.Unsubscribe() // quits blockBroadcastLoop |