add async version of setUnspentOutputs
This commit is contained in:
parent
83db6483fa
commit
f7d4895b74
2 changed files with 41 additions and 0 deletions
src
|
@ -83,6 +83,16 @@ var Wallet = function (seed, options) {
|
|||
this.outputs = outputs
|
||||
}
|
||||
|
||||
this.setUnspentOutputsAsync = function(utxo, callback) {
|
||||
try {
|
||||
this.setUnspentOutputs(utxo)
|
||||
} catch(err) {
|
||||
return callback(err)
|
||||
}
|
||||
|
||||
return callback()
|
||||
}
|
||||
|
||||
function outputToUnspentOutput(output){
|
||||
var hashAndIndex = output.receive.split(":")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue