fixes on jsdoc
This commit is contained in:
parent
7a862e3d9b
commit
10938b43d8
3 changed files with 6 additions and 5 deletions
|
|
@ -419,6 +419,9 @@ TxProposal.prototype.setCopayers = function(senderId, keyMap, readOnlyPeers) {
|
||||||
|
|
||||||
// merge will not merge any metadata.
|
// merge will not merge any metadata.
|
||||||
TxProposal.prototype.merge = function(incoming) {
|
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
|
// Note that all inputs must have the same number of signatures, so checking
|
||||||
// one (0) is OK.
|
// one (0) is OK.
|
||||||
var before = this._inputSigners[0].length;
|
var before = this._inputSigners[0].length;
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,6 @@ TxProposals.prototype.toObj = function() {
|
||||||
|
|
||||||
TxProposals.prototype.merge = function(inObj, builderOpts) {
|
TxProposals.prototype.merge = function(inObj, builderOpts) {
|
||||||
var incomingTx = TxProposal.fromUntrustedObj(inObj, builderOpts);
|
var incomingTx = TxProposal.fromUntrustedObj(inObj, builderOpts);
|
||||||
incomingTx._sync();
|
|
||||||
|
|
||||||
var myTxps = this.txps;
|
var myTxps = this.txps;
|
||||||
var ntxid = incomingTx.getId();
|
var ntxid = incomingTx.getId();
|
||||||
|
|
|
||||||
|
|
@ -2081,15 +2081,14 @@ Wallet.prototype.maxRejectCount = function() {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @callback getUnspentCallback
|
* @callback getUnspentCallback
|
||||||
* @TODO: Document this better
|
* @desc Get a list of unspent transaction outputs
|
||||||
* @param {string} error
|
* @param {string} error
|
||||||
* @param {Object[]} safeUnspendList
|
* @param {Object[]} safeUnspendList
|
||||||
* @param {Object[]} unspentList
|
* @param {Object[]} unspentList
|
||||||
*/
|
|
||||||
/* @ TODO add cached?
|
|
||||||
* @desc Get a list of unspent transaction outputs
|
|
||||||
* @param {getUnspentCallback} cb
|
* @param {getUnspentCallback} cb
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// TODO: Can we add cache to getUnspent?
|
||||||
Wallet.prototype.getUnspent = function(cb) {
|
Wallet.prototype.getUnspent = function(cb) {
|
||||||
var self = this;
|
var self = this;
|
||||||
this.blockchain.getUnspent(this.getAddressesStr(), function(err, unspentList) {
|
this.blockchain.getUnspent(this.getAddressesStr(), function(err, unspentList) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue