peer: do not flush merkle blocks early.
This commit is contained in:
parent
2ee6cea969
commit
05353e0e1a
@ -1456,11 +1456,6 @@ Peer.prototype.onPacket = co(function* onPacket(packet) {
|
|||||||
this.bip150.reject(new Error('Message before auth.'));
|
this.bip150.reject(new Error('Message before auth.'));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.lastMerkle) {
|
|
||||||
if (packet.type !== packetTypes.TX)
|
|
||||||
this.flushMerkle();
|
|
||||||
}
|
|
||||||
|
|
||||||
entry = this.fulfill(packet);
|
entry = this.fulfill(packet);
|
||||||
|
|
||||||
switch (packet.type) {
|
switch (packet.type) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user