You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
948 B
32 lines
948 B
#!/usr/bin/env node
|
|
|
|
var _ = require('lodash');
|
|
var program = require('commander');
|
|
var Client = require('../lib/client');
|
|
var utils = require('./cli-utils');
|
|
program = utils.configureCommander(program);
|
|
|
|
program
|
|
.parse(process.argv);
|
|
|
|
var client = utils.getClient(program);
|
|
|
|
client.getStatus(function(err, x, myCopayerId) {
|
|
utils.die(err);
|
|
console.log('\n To be sure that none Copayer has joined more that once to this wallet, you can asked them their confirmation number. They can grab them using this (bit confirm) command.');
|
|
|
|
console.log('\n * Copayer confirmations ids:');
|
|
|
|
var myConfirmationId;
|
|
_.each(x.wallet.copayers, function(x) {
|
|
var confirmationId = utils.confirmationId(x);
|
|
if (x.id != myCopayerId)
|
|
console.log('\t\t* %s : %s', x.name, confirmationId);
|
|
else
|
|
myConfirmationId = confirmationId;
|
|
});
|
|
|
|
|
|
console.log('\t\t---');
|
|
console.log('\t\tYour confirmation ID: %s', myConfirmationId);
|
|
});
|
|
|