mirror of https://github.com/BTCPrivate/copay.git
fixes on jsdoc
This commit is contained in:
parent
7a862e3d9b
commit
10938b43d8
|
@ -419,6 +419,9 @@ TxProposal.prototype.setCopayers = function(senderId, keyMap, readOnlyPeers) {
|
|||
|
||||
// merge will not merge any metadata.
|
||||
TxProposal.prototype.merge = function(incoming) {
|
||||
preconditions.checkArgument(_.isFunction(incoming._sync));
|
||||
incoming._sync();
|
||||
|
||||
// Note that all inputs must have the same number of signatures, so checking
|
||||
// one (0) is OK.
|
||||
var before = this._inputSigners[0].length;
|
||||
|
|
|
@ -98,7 +98,6 @@ TxProposals.prototype.toObj = function() {
|
|||
|
||||
TxProposals.prototype.merge = function(inObj, builderOpts) {
|
||||
var incomingTx = TxProposal.fromUntrustedObj(inObj, builderOpts);
|
||||
incomingTx._sync();
|
||||
|
||||
var myTxps = this.txps;
|
||||
var ntxid = incomingTx.getId();
|
||||
|
|
|
@ -2081,15 +2081,14 @@ Wallet.prototype.maxRejectCount = function() {
|
|||
|
||||
/**
|
||||
* @callback getUnspentCallback
|
||||
* @TODO: Document this better
|
||||
* @desc Get a list of unspent transaction outputs
|
||||
* @param {string} error
|
||||
* @param {Object[]} safeUnspendList
|
||||
* @param {Object[]} unspentList
|
||||
*/
|
||||
/* @ TODO add cached?
|
||||
* @desc Get a list of unspent transaction outputs
|
||||
* @param {getUnspentCallback} cb
|
||||
*/
|
||||
|
||||
// TODO: Can we add cache to getUnspent?
|
||||
Wallet.prototype.getUnspent = function(cb) {
|
||||
var self = this;
|
||||
this.blockchain.getUnspent(this.getAddressesStr(), function(err, unspentList) {
|
||||
|
|
Loading…
Reference in New Issue