peer: do not flush merkle blocks early.

This commit is contained in:
Christopher Jeffrey 2017-01-18 21:59:46 -08:00
parent 2ee6cea969
commit 05353e0e1a
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -1456,11 +1456,6 @@ Peer.prototype.onPacket = co(function* onPacket(packet) {
this.bip150.reject(new Error('Message before auth.'));
}
if (this.lastMerkle) {
if (packet.type !== packetTypes.TX)
this.flushMerkle();
}
entry = this.fulfill(packet);
switch (packet.type) {