@aztec/p2p 3.0.0-nightly.20251219 → 3.0.0-nightly.20251220

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -658,8 +658,8 @@ import { P2PInstrumentation } from './instrumentation.js';
658
658
  const pool = this.mempools.attestationPool;
659
659
  // Note that we dont have an attestation pool if we're a prover node, but we still
660
660
  // subscribe to block proposal topics in order to prevent their txs from being cleared.
661
- const exists = isValid && await pool?.hasBlockProposal(block);
662
- const canAdd = isValid && await pool?.canAddProposal(block);
661
+ const exists = isValid && pool ? await pool.hasBlockProposal(block) : false;
662
+ const canAdd = isValid && pool ? await pool.canAddProposal(block) : true; // If pool DNE, set canAdd to true to avoid peer penalization (the block is not added to the pool)
663
663
  this.logger.trace(`Validate propagated block proposal`, {
664
664
  isValid,
665
665
  exists,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/p2p",
3
- "version": "3.0.0-nightly.20251219",
3
+ "version": "3.0.0-nightly.20251220",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./dest/index.js",
@@ -67,17 +67,17 @@
67
67
  ]
68
68
  },
69
69
  "dependencies": {
70
- "@aztec/constants": "3.0.0-nightly.20251219",
71
- "@aztec/epoch-cache": "3.0.0-nightly.20251219",
72
- "@aztec/ethereum": "3.0.0-nightly.20251219",
73
- "@aztec/foundation": "3.0.0-nightly.20251219",
74
- "@aztec/kv-store": "3.0.0-nightly.20251219",
75
- "@aztec/noir-contracts.js": "3.0.0-nightly.20251219",
76
- "@aztec/noir-protocol-circuits-types": "3.0.0-nightly.20251219",
77
- "@aztec/protocol-contracts": "3.0.0-nightly.20251219",
78
- "@aztec/simulator": "3.0.0-nightly.20251219",
79
- "@aztec/stdlib": "3.0.0-nightly.20251219",
80
- "@aztec/telemetry-client": "3.0.0-nightly.20251219",
70
+ "@aztec/constants": "3.0.0-nightly.20251220",
71
+ "@aztec/epoch-cache": "3.0.0-nightly.20251220",
72
+ "@aztec/ethereum": "3.0.0-nightly.20251220",
73
+ "@aztec/foundation": "3.0.0-nightly.20251220",
74
+ "@aztec/kv-store": "3.0.0-nightly.20251220",
75
+ "@aztec/noir-contracts.js": "3.0.0-nightly.20251220",
76
+ "@aztec/noir-protocol-circuits-types": "3.0.0-nightly.20251220",
77
+ "@aztec/protocol-contracts": "3.0.0-nightly.20251220",
78
+ "@aztec/simulator": "3.0.0-nightly.20251220",
79
+ "@aztec/stdlib": "3.0.0-nightly.20251220",
80
+ "@aztec/telemetry-client": "3.0.0-nightly.20251220",
81
81
  "@chainsafe/libp2p-gossipsub": "13.0.0",
82
82
  "@chainsafe/libp2p-noise": "^15.0.0",
83
83
  "@chainsafe/libp2p-yamux": "^6.0.2",
@@ -104,8 +104,8 @@
104
104
  "xxhash-wasm": "^1.1.0"
105
105
  },
106
106
  "devDependencies": {
107
- "@aztec/archiver": "3.0.0-nightly.20251219",
108
- "@aztec/world-state": "3.0.0-nightly.20251219",
107
+ "@aztec/archiver": "3.0.0-nightly.20251220",
108
+ "@aztec/world-state": "3.0.0-nightly.20251220",
109
109
  "@jest/globals": "^30.0.0",
110
110
  "@types/jest": "^30.0.0",
111
111
  "@types/node": "^22.15.17",
@@ -877,8 +877,8 @@ export class LibP2PService<T extends P2PClientType = P2PClientType.Full> extends
877
877
 
878
878
  // Note that we dont have an attestation pool if we're a prover node, but we still
879
879
  // subscribe to block proposal topics in order to prevent their txs from being cleared.
880
- const exists = isValid && (await pool?.hasBlockProposal(block));
881
- const canAdd = isValid && (await pool?.canAddProposal(block));
880
+ const exists = isValid && pool ? await pool.hasBlockProposal(block) : false;
881
+ const canAdd = isValid && pool ? await pool.canAddProposal(block) : true; // If pool DNE, set canAdd to true to avoid peer penalization (the block is not added to the pool)
882
882
 
883
883
  this.logger.trace(`Validate propagated block proposal`, {
884
884
  isValid,