From 12317561b8bbbe2cd396e0f41ee75d6d35ed39b3 Mon Sep 17 00:00:00 2001 From: ale Date: Sun, 10 Mar 2024 18:27:46 +0100 Subject: [PATCH] use unspentNotes only if you are not decrypting --- js/pivx_shield.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/pivx_shield.ts b/js/pivx_shield.ts index d08d57f..86b49be 100644 --- a/js/pivx_shield.ts +++ b/js/pivx_shield.ts @@ -302,7 +302,7 @@ export class PIVXShield { hex, this.extfvk, this.isTestnet, - this.unspentNotes, + decryptOnly ? [] : this.unspentNotes, ); if (!decryptOnly) { this.commitmentTree = res.commitment_tree;