From 0c18d8432d9e167b6e38d93857c9468f83def3be Mon Sep 17 00:00:00 2001 From: Mitchell Tracy Date: Tue, 9 Jan 2024 08:04:37 -0500 Subject: [PATCH] address PR feedback --- yarn-project/pxe/src/synchronizer/synchronizer.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/yarn-project/pxe/src/synchronizer/synchronizer.ts b/yarn-project/pxe/src/synchronizer/synchronizer.ts index 36185e186df..6a2e1256738 100644 --- a/yarn-project/pxe/src/synchronizer/synchronizer.ts +++ b/yarn-project/pxe/src/synchronizer/synchronizer.ts @@ -339,7 +339,11 @@ export class Synchronizer { * Retry decoding any deferred notes for the specified contract address. * @param contractAddress - the contract address that has just been added */ - public async reprocessDeferredNotesForContract(contractAddress: AztecAddress) { + public reprocessDeferredNotesForContract(contractAddress: AztecAddress): Promise { + return this.jobQueue.put(() => this.#reprocessDeferredNotesForContract(contractAddress)); + } + + async #reprocessDeferredNotesForContract(contractAddress: AztecAddress): Promise { const deferredNotes = await this.db.getDeferredNotesByContract(contractAddress); // group deferred notes by txHash to properly deal with possible duplicates