From 6afee3cccb007c69e3b01ee6e30c22555ed5e9f0 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Mon, 16 May 2016 18:49:23 -0700 Subject: [PATCH] speed up mempoolentry.toRaw. --- lib/bcoin/mempool.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bcoin/mempool.js b/lib/bcoin/mempool.js index b72ef4a9..88a53adf 100644 --- a/lib/bcoin/mempool.js +++ b/lib/bcoin/mempool.js @@ -1824,7 +1824,7 @@ MempoolEntry.fromTX = function fromTX(tx, height) { MempoolEntry.prototype.toRaw = function toRaw() { var p = new BufferWriter(); - bcoin.protocol.framer.tx(this.tx, p); + bcoin.protocol.framer.renderTX(this.tx, true, p); p.writeU32(this.height); p.writeDouble(this.priority); p.writeVarint(this.chainValue);