Skip to content

Commit e26fb0d

Browse files
committed
fix(fast-inbox): bump p2p attestation store version for the shrunken proposal formats (A-1388)
The attestation store persists raw BlockProposal and CheckpointAttestation buffers. Both changed shape in this stack (the checkpoint header lost inHash and the block-proposal wire format dropped its zeroed inHash), and stored checkpoint attestations are decoded without a tolerant fallback, so a store written by a pre-Fast-Inbox node would throw on read. Bump 2 -> 3 to wipe stale pools, matching the archiver's no-migration bump.
1 parent f539a14 commit e26fb0d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

yarn-project/p2p/src/client/factory.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,10 @@ export async function createP2PClient(
8181
const store = deps.store ?? (await createStore(P2P_STORE_NAME, 4, config, bindings));
8282
const archive = await createStore(P2P_ARCHIVE_STORE_NAME, 1, config, bindings);
8383
const peerStore = await createStore(P2P_PEER_STORE_NAME, 1, config, bindings);
84-
const attestationStore = await createStore(P2P_ATTESTATION_STORE_NAME, 2, config, bindings);
84+
// Attestation store version 3: persisted proposal/attestation buffers embed the checkpoint header (which lost
85+
// `inHash`) and the block-proposal wire format (which dropped its zeroed `inHash`), so pre-Fast-Inbox bytes no
86+
// longer decode. Bumped to wipe stale pools; same no-migration policy as the archiver store.
87+
const attestationStore = await createStore(P2P_ATTESTATION_STORE_NAME, 3, config, bindings);
8588
const l1Constants = await archiver.getL1Constants();
8689

8790
const rollupAddress = inputConfig.rollupAddress.toString().toLowerCase().replace(/^0x/, '');

0 commit comments

Comments
 (0)