From d105ef39ad8785bf3c127047c325f35b7f1909d8 Mon Sep 17 00:00:00 2001 From: benesjan Date: Thu, 3 Oct 2024 18:14:52 +0000 Subject: [PATCH] feat: addressing partial notes PR feedback --- .../pxe/src/note_processor/utils/produce_note_daos_for_key.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/yarn-project/pxe/src/note_processor/utils/produce_note_daos_for_key.ts b/yarn-project/pxe/src/note_processor/utils/produce_note_daos_for_key.ts index 3faa2b78aa2..1b3acd032ad 100644 --- a/yarn-project/pxe/src/note_processor/utils/produce_note_daos_for_key.ts +++ b/yarn-project/pxe/src/note_processor/utils/produce_note_daos_for_key.ts @@ -128,6 +128,9 @@ async function handlePartialNote( daoConstructor, ); } catch (e) { + // We ignore the key prefix error because that is expected to be triggered when an incorrect value + // is inserted at the position of `npk_m_hash`. This happens commonly because we are brute forcing + // the unencrypted logs. if (!(e as any).message.includes('Could not find key prefix.')) { throw e; }