diff --git a/lib/bcoin/mempool.js b/lib/bcoin/mempool.js index a8fdaeae..878c4c73 100644 --- a/lib/bcoin/mempool.js +++ b/lib/bcoin/mempool.js @@ -1825,7 +1825,7 @@ MempoolEntry.prototype.toRaw = function toRaw() { var p = new BufferWriter(); bcoin.protocol.framer.tx(this.tx, p); p.writeU32(this.height); - p.writeVarint(this.priority); + p.writeU64(this.priority); p.writeVarint(this.chainValue); p.writeU32(this.ts); p.writeU32(this.count); @@ -1845,7 +1845,7 @@ MempoolEntry.fromRaw = function fromRaw(data) { return new MempoolEntry({ tx: bcoin.tx.fromRaw(p), height: p.readU32(), - priority: p.readVarint(), + priority: p.readU53(), chainValue: p.readVarint(), ts: p.readU32(), count: p.readU32(),