working on find_m_n script
This commit is contained in:
parent
194ddc8079
commit
c8ebf0ce65
4 changed files with 73 additions and 5 deletions
|
|
@ -20,7 +20,8 @@ function Wallet(opts) {
|
|||
'requiredCopayers', 'totalCopayers', 'spendUnconfirmed',
|
||||
'publicKeyRing', 'txProposals', 'privateKey', 'version'
|
||||
].forEach(function(k) {
|
||||
if (typeof opts[k] === 'undefined') throw new Error('missing key:' + k);
|
||||
if (typeof opts[k] === 'undefined')
|
||||
throw new Error('missing required option for Wallet: ' + k);
|
||||
self[k] = opts[k];
|
||||
});
|
||||
|
||||
|
|
@ -544,6 +545,8 @@ Wallet.prototype.getUnspent = function(cb) {
|
|||
|
||||
Wallet.prototype.createTx = function(toAddress, amountSatStr, opts, cb) {
|
||||
var self = this;
|
||||
alert(amountSatStr);
|
||||
alert(JSON.stringify(opts));
|
||||
if (typeof opts === 'function') {
|
||||
cb = opts;
|
||||
opts = {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue