Transaction: renames getHash to getId

In turn also removes the inherent calculation of tx.hash after deserialization.
This commit is contained in:
Daniel Cousens 2014-05-20 14:07:22 +10:00
parent 867465a03f
commit bdc7131d0e
4 changed files with 25 additions and 16 deletions

View file

@ -146,9 +146,9 @@ function Wallet(seed, network) {
}
function processTx(tx, isPending) {
var txhash = tx.getHash()
var txid = tx.getId()
tx.outs.forEach(function(txOut, i){
tx.outs.forEach(function(txOut, i) {
var address
try {
@ -158,7 +158,7 @@ function Wallet(seed, network) {
}
if (isMyAddress(address)) {
var output = txhash + ':' + i
var output = txid + ':' + i
me.outputs[output] = {
receive: output,