mempool: mem usage.

This commit is contained in:
Christopher Jeffrey 2016-10-19 18:06:51 -07:00
parent 5df4cabb94
commit d194f3b5d0
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -1687,10 +1687,14 @@ Mempool.prototype.memUsage = function memUsage(tx) {
var mem = 0;
var i, j, input, output, coin, op;
mem += 264; // tx
mem += 264; // tx (note: probably more now due to hhash pointer)
mem += 80; // _hash
mem += 88; // _hhash
mem += 80; // _raw
if (tx._whash)
mem += 80; // _whash
mem += 32; // input array
for (i = 0; i < tx.inputs.length; i++) {