peer: check broadcast list for getblocktxn.
This commit is contained in:
parent
765c3d2b77
commit
edb9c5afc6
@ -2006,7 +2006,7 @@ Peer.prototype._handleCmpctBlock = function _handleCmpctBlock(block) {
|
||||
|
||||
Peer.prototype._handleGetBlockTxn = function _handleGetBlockTxn(req) {
|
||||
var self = this;
|
||||
var res;
|
||||
var res, item;
|
||||
|
||||
function done(err) {
|
||||
if (err) {
|
||||
@ -2025,7 +2025,9 @@ Peer.prototype._handleGetBlockTxn = function _handleGetBlockTxn(req) {
|
||||
if (this.pool.options.selfish)
|
||||
return done();
|
||||
|
||||
this.chain.db.getBlock(req.hash, function(err, block) {
|
||||
item = new InvItem(constants.inv.BLOCK, req.hash);
|
||||
|
||||
this._getItem(item, function(err, block) {
|
||||
if (err)
|
||||
return done(err);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user