|
@ -9,20 +9,20 @@ program |
|
|
.parse(process.argv); |
|
|
.parse(process.argv); |
|
|
|
|
|
|
|
|
var args = program.args; |
|
|
var args = program.args; |
|
|
var client = utils.getClient(program); |
|
|
utils.getClient(program, function (client) { |
|
|
|
|
|
client.getStatus(function(err, res) { |
|
|
|
|
|
utils.die(err); |
|
|
|
|
|
|
|
|
client.getStatus(function(err, res) { |
|
|
var x = res.wallet; |
|
|
utils.die(err); |
|
|
console.log('* Wallet %s [%s]: %d-%d %s ', x.name, x.network, x.m, x.n, x.status); |
|
|
|
|
|
|
|
|
var x = res.wallet; |
|
|
if (x.status != 'complete') |
|
|
console.log('* Wallet %s [%s]: %d-%d %s ', x.name, x.network, x.m, x.n, x.status); |
|
|
console.log(' Missing copayers:', x.n - x.copayers.length); |
|
|
|
|
|
console.log('* Copayers:', _.pluck(x.copayers,'name').join(', ')); |
|
|
|
|
|
|
|
|
if (x.status != 'complete') |
|
|
var x = res.balance; |
|
|
console.log(' Missing copayers:', x.n - x.copayers.length); |
|
|
console.log('* Balance %s (Locked: %s)', utils.renderAmount(x.totalAmount), utils.renderAmount(x.lockedAmount)); |
|
|
console.log('* Copayers:', _.pluck(x.copayers,'name').join(', ')); |
|
|
|
|
|
|
|
|
|
|
|
var x = res.balance; |
|
|
utils.renderTxProposals(res.pendingTxps); |
|
|
console.log('* Balance %s (Locked: %s)', utils.renderAmount(x.totalAmount), utils.renderAmount(x.lockedAmount)); |
|
|
}); |
|
|
|
|
|
|
|
|
utils.renderTxProposals(res.pendingTxps); |
|
|
|
|
|
}); |
|
|
}); |
|
|