wallet.processTx accepts isPending flag and passes it on to output
This commit is contained in:
parent
ad9a73a81b
commit
660c95483d
2 changed files with 13 additions and 2 deletions
src
|
@ -136,7 +136,7 @@ function Wallet(seed, network) {
|
|||
return value == undefined
|
||||
}
|
||||
|
||||
this.processTx = function(tx) {
|
||||
this.processTx = function(tx, isPending) {
|
||||
var txhash = tx.getHash()
|
||||
|
||||
tx.outs.forEach(function(txOut, i){
|
||||
|
@ -155,6 +155,7 @@ function Wallet(seed, network) {
|
|||
receive: output,
|
||||
value: txOut.value,
|
||||
address: address,
|
||||
pending: isPending
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue