auto request txs.
This commit is contained in:
parent
3fc7272780
commit
9ada551b28
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user