speed up mempoolentry.toRaw.

This commit is contained in:
Christopher Jeffrey 2016-05-16 18:49:23 -07:00
parent 43f0ee2207
commit 6afee3cccb
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

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