ethereum / node-ethereum

[DEPRECATED] a simple standalone or embeddable Ethereum client written for Node.js
GNU General Public License v2.0
46 stars 38 forks source link

Overlooked net 'ENOENT' on peer connect #34

Closed Latrasis closed 9 years ago

Latrasis commented 9 years ago

For #32 while adding a missing error check (my fault) :

function connectPeers(done, results) {
    results.loadPeers.forEach(function(peer) {
      self.network.connect(peer.ip, peer.port, function(err) {
        if (!err)
          log.info('networking','Connecting to '+ peer.ip+':'+ peer.port);
        else
          log.error('networking', err);
      });
    });
    done();
  }

I start getting this:

ERR! networking  { [Error: connect ENOENT] code: 'ENOENT', errno: 'ENOENT', syscall: 'connect' }
ERR! networking Error: connect ENOENT
Latrasis commented 9 years ago

False alarm