Skip to content

fix: remove redundant p2pClient.start() call#22438

Merged
ludamad merged 2 commits into
merge-train/spartanfrom
spyros/a-736-audit-60-p2p-client-start-called-twice-in-serverts-duplicate
Apr 9, 2026
Merged

fix: remove redundant p2pClient.start() call#22438
ludamad merged 2 commits into
merge-train/spartanfrom
spyros/a-736-audit-60-p2p-client-start-called-twice-in-serverts-duplicate

Conversation

@spypsy

@spypsy spypsy commented Apr 9, 2026

Copy link
Copy Markdown
Member

Removes the duplicate p2pClient.start(). The P2P client is already fully started (and synced) by the unconditional await p2pClient.start() earlier in createAztecNode.

The second call just hits the guard clause (if state !== IDLE return syncPromise) and is a no-op. This is just for cleanup

Fixes A-736

@spypsy spypsy force-pushed the spyros/a-736-audit-60-p2p-client-start-called-twice-in-serverts-duplicate branch from 1641808 to 3b00321 Compare April 9, 2026 12:31
@spypsy spypsy marked this pull request as ready for review April 9, 2026 12:32
…ent-start-called-twice-in-serverts-duplicate
@ludamad ludamad enabled auto-merge (squash) April 9, 2026 23:14
@ludamad ludamad merged commit 064a1b2 into merge-train/spartan Apr 9, 2026
12 checks passed
@ludamad ludamad deleted the spyros/a-736-audit-60-p2p-client-start-called-twice-in-serverts-duplicate branch April 9, 2026 23:14
github-merge-queue Bot pushed a commit that referenced this pull request Apr 10, 2026
BEGIN_COMMIT_OVERRIDE
fix(stdlib): use bigint arithmetic in GasFees.mul() for non-integer
scalars (#22383)
fix(node-lib): reuse existing fileStore in snapshot sync instead of
recreating (#22375)
fix: gate req/resp data protocols for unauthenticated peers (#22406)
fix(p2p): use per-batch ops array in AztecDatastore.batch() (#22357)
chore(pipeline): spartan config (#21285)
chore: add claude skill to send txs (#22439)
feat(pipeline): minimize deadzone w cross slot attesting (#21435)
fix(p2p): avoid 32-bit overflow in attestation pool block position key
(#22412)
fix(prover-client): increment retry count on timeout re-enqueue to
prevent infinite loop (#22355)
fix: remove redundant p2pClient.start() call (#22438)
chore: add kubectl binary to spartan .gitignore (#22454)
END_COMMIT_OVERRIDE
critesjosh pushed a commit that referenced this pull request Apr 14, 2026
Removes the duplicate `p2pClient.start()`. The P2P client is already
fully started (and synced) by the unconditional `await
p2pClient.start()` earlier in `createAztecNode`.

The second call just hits the guard clause (`if state !== IDLE return
syncPromise`) and is a no-op. This is just for cleanup

Fixes
[A-736](https://linear.app/aztec-labs/issue/A-736/audit-60-p2p-client-start-called-twice-in-serverts-duplicate-listeners)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants