Transaction: renames getHash to getId
In turn also removes the inherent calculation of tx.hash after deserialization.
This commit is contained in:
parent
867465a03f
commit
bdc7131d0e
4 changed files with 25 additions and 16 deletions
src
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue