Unblinding refactor fix

This commit is contained in:
softsimon
2021-08-18 03:34:17 +03:00
parent fe1d153632
commit e20100e437
2 changed files with 11 additions and 8 deletions

View File

@@ -68,7 +68,7 @@ export class LiquidUnblinding {
tx._unblinded = { matched, total: this.commitments.size };
this.deduceBlinded(tx);
if (matched < this.commitments.size) {
throw new Error(`Error: Invalid blinding data.`)
throw new Error(`Invalid blinding data.`)
}
tx._deduced = false; // invalidate cache so deduction is attempted again
return tx._unblinded;