blockcollider / bcnode

Mining node and rovers for the five genesis chains of Block Collider.
https://www.blockcollider.org
MIT License
45 stars 23 forks source link

ERROR rover.btc.controller Could not disconnect from peer, err: #242

Closed Simon0x closed 6 years ago

Simon0x commented 6 years ago

Prerequisites

For more information, see the CONTRIBUTING guide.

Description

The BC rover has a problem when disconnectin from peer

Steps to Reproduce

  1. Run latest version of the miner

Expected behavior: There should be no error if a rover try to disconnect from peer

Actual behavior: Could not disconnect error

Versions

(0.5.5/7a7e16d)

Application (required)

You can get this information:

Environment (optional but helpful)

Logs

Full Log: http://telobot.com/isKg.log

 2018-05-12T21:04:15.955Z ERROR rover.btc.controller Could not disconnect from peer, err: { stack: 
[ 'TypeError: Cannot read property \'status\' of undefined',
 'at Pool._removeConnectedPeer (/home/bc/bcnode/node_modules/bitcore-p2p/lib/pool.js:174:39)',
 'at Pool.peerDisconnectEvent (/home/bc/bcnode/node_modules/bitcore-p2p/lib/pool.js:98:10)',
 'at Pool.emit (events.js:185:15)',
 'at Peer.peerDisconnect (/home/bc/bcnode/node_modules/bitcore-p2p/lib/pool.js:244:10)',
 'at Peer.emit (events.js:180:13)',
 'at Peer.disconnect (/home/bc/bcnode/node_modules/bitcore-p2p/lib/peer.js:185:8)',
 'at Controller._tryDisconnectPeer (/home/bc/bcnode/lib/rover/btc/controller.js:66:12)',
 'at Pool.pool.on (/home/bc/bcnode/lib/rover/btc/controller.js:126:12)',
 'at Pool.emit (events.js:180:13)',
 'at Peer.peerEvent (/home/bc/bcnode/node_modules/bitcore-p2p/lib/pool.js:251:12)' ],
 message: 'Cannot read property \'status\' of undefined' }