Skip to content

Commit

Permalink
fix: account sync state for processors catching up
Browse files Browse the repository at this point in the history
  • Loading branch information
alexghr committed Nov 6, 2023
1 parent a7354dc commit ba42998
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yarn-project/pxe/src/synchronizer/synchronizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,8 @@ export class Synchronizer {
if (!completeAddress) {
throw new Error(`Checking if account is synched is not possible for ${account} because it is not registered.`);
}
const processor = this.noteProcessors.find(x => x.publicKey.equals(completeAddress.publicKey));
const findByPublicKey = (x: NoteProcessor) => x.publicKey.equals(completeAddress.publicKey);
const processor = this.noteProcessors.find(findByPublicKey) ?? this.noteProcessorsToCatchUp.find(findByPublicKey);
if (!processor) {
throw new Error(
`Checking if account is synched is not possible for ${account} because it is only registered as a recipient.`,
Expand Down

0 comments on commit ba42998

Please sign in to comment.