updates model and tests to newest bitcore version

This commit is contained in:
Matias Alejo Garcia 2014-07-24 21:18:38 -03:00
commit 2d481dd406
5 changed files with 84 additions and 71 deletions

View file

@ -127,6 +127,17 @@ TxProposal.prototype.mergeMetadata = function(v1, author) {
};
//This should be on bitcore / Transaction
TxProposal.prototype.countSignatures = function() {
var tx = this.builder.build();
var ret=0;
for(var i in tx.ins) {
ret += tx.countInputSignatures(i);
}
return ret;
};
module.exports = require('soop')(TxProposal);