speed up mempoolentry.toRaw.
This commit is contained in:
parent
43f0ee2207
commit
6afee3cccb
@ -1824,7 +1824,7 @@ MempoolEntry.fromTX = function fromTX(tx, height) {
|
|||||||
|
|
||||||
MempoolEntry.prototype.toRaw = function toRaw() {
|
MempoolEntry.prototype.toRaw = function toRaw() {
|
||||||
var p = new BufferWriter();
|
var p = new BufferWriter();
|
||||||
bcoin.protocol.framer.tx(this.tx, p);
|
bcoin.protocol.framer.renderTX(this.tx, true, p);
|
||||||
p.writeU32(this.height);
|
p.writeU32(this.height);
|
||||||
p.writeDouble(this.priority);
|
p.writeDouble(this.priority);
|
||||||
p.writeVarint(this.chainValue);
|
p.writeVarint(this.chainValue);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user