wallet: processTx -> processConfirmedTx, processPendingTx
This commit is contained in:
parent
e064e9d29d
commit
d265b53b03
2 changed files with 89 additions and 76 deletions
src
|
@ -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){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue