wallet: processTx -> processConfirmedTx, processPendingTx

This commit is contained in:
Wei Lu 2014-06-12 15:42:10 +08:00
parent e064e9d29d
commit d265b53b03
2 changed files with 89 additions and 76 deletions

View file

@ -137,7 +137,15 @@ function Wallet(seed, network) {
return value == undefined
}
this.processTx = function(tx, isPending) {
this.processPendingTx = function(tx){
processTx(tx, true)
}
this.processConfirmedTx = function(tx){
processTx(tx, false)
}
function processTx(tx, isPending) {
var txhash = tx.getHash()
tx.outs.forEach(function(txOut, i){