|
|
@ -868,11 +868,11 @@ WalletService.prototype.removePendingTx = function(opts, cb) { |
|
|
|
|
|
|
|
var now = Math.floor(Date.now() / 1000); |
|
|
|
if (now - txp.createdOn < WalletService.lockTimeoutHours * 3600) { |
|
|
|
var actors = txp.getActors(); |
|
|
|
if (txp.creatorId !== self.copayerId) |
|
|
|
return cb(new ClientError('Only creators can remove pending proposals during locktime')); |
|
|
|
|
|
|
|
if (actors.length > 1 || (actors.length == 1 && actors[0] !== self.copayerId)) |
|
|
|
var approvers = txp.getApprovers(); |
|
|
|
if (approvers.length > 1 || (approvers.length == 1 && approvers[0] !== self.copayerId)) |
|
|
|
return cb(new ClientError('TXACTIONED', 'Cannot remove a proposal signed/rejected by other copayers during locktime')); |
|
|
|
} |
|
|
|
|
|
|
|