rm networking on nonShared wallets

This commit is contained in:
Matias Alejo Garcia 2014-11-23 15:52:39 -03:00
commit a7de2ababd
6 changed files with 179 additions and 153 deletions

View file

@ -82,6 +82,24 @@ TxProposal.prototype._checkPayPro = function() {
};
TxProposal.prototype.isFullySigned = function() {
return txp.builder && txp.builder.isFullySigned();
};
TxProposal.prototype.sign = function(keys, signerId) {
var before = txp.countSignatures();
txp.builder.sign(keys);
var signaturesAdded = txp.countSignatures() > before;
if (signaturesAdded){
txp.signedBy[signerId] = Date.now();
}
return signturesAdded;
};
TxProposal.prototype._check = function() {
if (this.builder.signhash && this.builder.signhash !== Transaction.SIGHASH_ALL) {