Closed garyhodgson closed 10 years ago
Exact! I admit that the library can look like a mess and is not easy to tackle, but you did well!
Thanks!
The good way to imitate was in node.js
:
var pings = this._bootstraps.map(function(peer) {
return new PingRPC(peer);
});
this._reactor.sendRPC(pings);
Maybe, for convenience, node.js
could have implemented an higher level method to send PING request to a given host:
sendPing: function(address) {
var peer = new BootstrapPeer(address);
var rpc = new PingRPC(peer);
this._reactor.sendRPC(rpc);
return rpc;
}
Fixes Issue #63 (Ping bug in debug UI ?)