Improved tests
This commit is contained in:
parent
70446c5ee7
commit
2c53bc073e
4 changed files with 281 additions and 142 deletions
|
|
@ -129,7 +129,7 @@ TxProposal.fromObj = function(o, forceOpts) {
|
|||
forceOpts = forceOpts || {};
|
||||
|
||||
|
||||
if (forceOpts){
|
||||
if (forceOpts) {
|
||||
o.builderObj.opts = o.builderObj.opts || {};
|
||||
}
|
||||
|
||||
|
|
@ -232,6 +232,10 @@ TxProposal.prototype.mergeBuilder = function(incoming) {
|
|||
};
|
||||
|
||||
|
||||
TxProposal.prototype.getSeen = function(copayerId) {
|
||||
return this.seenBy[copayerId];
|
||||
};
|
||||
|
||||
TxProposal.prototype.setSeen = function(copayerId) {
|
||||
if (!this.seenBy[copayerId])
|
||||
this.seenBy[copayerId] = Date.now();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue