diff --git a/lib/bcoin/protocol/framer.js b/lib/bcoin/protocol/framer.js index 788aff31..300060ef 100644 --- a/lib/bcoin/protocol/framer.js +++ b/lib/bcoin/protocol/framer.js @@ -343,13 +343,13 @@ Framer.block = function _block(block, type) { }; Framer.prototype.block = function _block(block) { - return this.packet(Framer.block(block, 'block')); + return this.packet('block', Framer.block(block, 'block')); }; Framer.prototype.merkleBlock = function merkleBlock(block) { // XXX Technically we're also supposed to send `tx` packets accompanying the // merkleblock here if we have them, as per the offical bitcoin client. - return this.packet(Framer.block(block, 'merkleblock')); + return this.packet('merkleblock', Framer.block(block, 'merkleblock')); }; Framer.prototype.addr = function addr(peers) {