Skip to content

Commit

Permalink
save and load the nullifier map
Browse files Browse the repository at this point in the history
  • Loading branch information
panleone committed Mar 6, 2024
1 parent 5a60f67 commit e970abc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/pivx_shield.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ export class PIVXShield {
diversifierIndex: this.diversifierIndex,
unspentNotes: this.unspentNotes,
isTestnet: this.isTestnet,
mapNullifierNote: this.mapNullifierNote
});
}
/**
Expand All @@ -281,6 +282,7 @@ export class PIVXShield {
shieldData.lastProcessedBlock,
shieldData.commitmentTree,
);
pivxShield.mapNullifierNote = shieldData.mapNullifierNote;
pivxShield.diversifierIndex = shieldData.diversifierIndex;
pivxShield.unspentNotes = shieldData.unspentNotes;
return pivxShield;
Expand Down

0 comments on commit e970abc

Please sign in to comment.