diff options
| author | Adam Soltys <[email protected]> | 2016-11-23 15:32:32 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2016-12-26 14:22:39 -0800 |
| commit | 5c91e5d45afaa22a71bfcdbd4c956a8993388bdb (patch) | |
| tree | 4a15b18e05a5fd13c19aec35954f2d430748a6e0 /public/js/calculator.js | |
| parent | a38665ae8273da58e657317026bb07f51d4ae731 (diff) | |
| download | coinos-server-5c91e5d45afaa22a71bfcdbd4c956a8993388bdb.tar.gz coinos-server-5c91e5d45afaa22a71bfcdbd4c956a8993388bdb.zip | |
Remove whitespace
Diffstat (limited to 'public/js/calculator.js')
| -rw-r--r-- | public/js/calculator.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/public/js/calculator.js b/public/js/calculator.js index c85c9bb3..6e71b56a 100644 --- a/public/js/calculator.js +++ b/public/js/calculator.js @@ -201,14 +201,13 @@ return listen(); }; return g.blockchain.onmessage = function(e) { - var amount, j, len, output, ref, tx, txid; + var amount, j, len, output, ref, tx; tx = JSON.parse(e.data); amount = 0; - txid = tx.hash; - if (txid === g.last) { + if (tx.hash === g.last_seen) { return; } - g.last = txid; + g.last_seen = tx.hash; ref = tx.outputs; for (j = 0, len = ref.length; j < len; j++) { output = ref[j]; @@ -216,7 +215,7 @@ amount += output.value / 100000000; } } - return logTransaction(txid, amount); + return logTransaction(tx.hash, amount); }; } }; |
