bug fix: txid & blockhash not cached correctly
This commit is contained in:
parent
60289a644b
commit
e7248320a6
@ -143,10 +143,10 @@ Encoding.prototype.encodeAddressCacheValue = function(lastTx, lastBlock, balance
|
||||
txApperancesBuffer.writeUInt32BE(txApperances);
|
||||
buffer.push(txApperancesBuffer);
|
||||
|
||||
var txidBuffer = new Buffer(lastTx);
|
||||
var txidBuffer = new Buffer(lastTx, 'hex');
|
||||
buffer.push(txidBuffer);
|
||||
|
||||
var blkBuffer = new Buffer(lastBlock);
|
||||
var blkBuffer = new Buffer(lastBlock, 'hex');
|
||||
buffer.push(blkBuffer);
|
||||
|
||||
return Buffer.concat(buffer);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user