wallet.processTx accepts isPending flag and passes it on to output

This commit is contained in:
Wei Lu 2014-06-12 12:56:50 +08:00
parent ad9a73a81b
commit 660c95483d
2 changed files with 13 additions and 2 deletions

View file

@ -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
}
}
})