peer: check broadcast list for getblocktxn.

This commit is contained in:
Christopher Jeffrey 2016-08-02 13:46:04 -07:00
parent 765c3d2b77
commit edb9c5afc6
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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);