auto request txs.

This commit is contained in:
Christopher Jeffrey 2016-01-29 13:00:29 -08:00
parent 3fc7272780
commit 9ada551b28

View File

@ -830,6 +830,12 @@ Pool.prototype._createPeer = function _createPeer(backoff, priority) {
peer.on('txs', function(txs) {
self.emit('txs', txs, peer);
peer.getData(txs.map(function(hash) {
return {
type: 'tx',
hash: hash
};
}));
});
peer.on('version', function(version) {