Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions yarn-project/p2p/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@
"@aztec/simulator": "workspace:^",
"@aztec/stdlib": "workspace:^",
"@aztec/telemetry-client": "workspace:^",
"@chainsafe/discv5": "9.0.0",
"@chainsafe/enr": "3.0.0",
"@chainsafe/libp2p-gossipsub": "13.0.0",
"@chainsafe/libp2p-noise": "^15.0.0",
"@chainsafe/libp2p-yamux": "^6.0.2",
Expand All @@ -94,6 +92,8 @@
"@libp2p/prometheus-metrics": "^4.2.4",
"@libp2p/tcp": "9.0.24",
"@multiformats/multiaddr": "12.1.14",
"@nethermindeth/discv5": "9.0.0-backport-306-v4",
"@nethermindeth/enr": "3.0.0-backport-306-v4",
"interface-datastore": "^8.2.11",
"interface-store": "^5.1.8",
"libp2p": "1.5.0",
Expand Down
4 changes: 2 additions & 2 deletions yarn-project/p2p/src/bootstrap/bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import type { AztecAsyncKVStore } from '@aztec/kv-store';
import type { P2PBootstrapApi } from '@aztec/stdlib/interfaces/server';
import { OtelMetricsAdapter, type TelemetryClient } from '@aztec/telemetry-client';

import { Discv5, type Discv5EventEmitter } from '@chainsafe/discv5';
import { ENR, type SignableENR } from '@chainsafe/enr';
import type { PeerId } from '@libp2p/interface';
import { type Multiaddr, multiaddr } from '@multiformats/multiaddr';
import { Discv5, type Discv5EventEmitter } from '@nethermindeth/discv5';
import { ENR, type SignableENR } from '@nethermindeth/enr';

import type { BootnodeConfig } from '../config.js';
import { createBootnodeENRandPeerId } from '../enr/generate-enr.js';
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/p2p/src/client/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import type { P2PApiFull } from '@aztec/stdlib/interfaces/server';
import type { BlockProposal, P2PClientType } from '@aztec/stdlib/p2p';
import type { Tx, TxHash } from '@aztec/stdlib/tx';

import type { ENR } from '@chainsafe/enr';
import type { PeerId } from '@libp2p/interface';
import type { ENR } from '@nethermindeth/enr';

import type { P2PConfig } from '../config.js';
import type { AuthRequest, StatusMessage } from '../services/index.js';
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/p2p/src/client/p2p_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import {
trackSpan,
} from '@aztec/telemetry-client';

import type { ENR } from '@chainsafe/enr';
import type { PeerId } from '@libp2p/interface';
import type { ENR } from '@nethermindeth/enr';

import { type P2PConfig, getP2PDefaultConfig } from '../config.js';
import type { AttestationPool } from '../mem_pools/attestation_pool/attestation_pool.js';
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/p2p/src/enr/generate-enr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import type { LogFn } from '@aztec/foundation/log';
import { type ChainConfig, emptyChainConfig } from '@aztec/stdlib/config';
import type { ComponentsVersions } from '@aztec/stdlib/versioning';

import { ENR, SignableENR } from '@chainsafe/enr';
import type { PeerId } from '@libp2p/interface';
import { type Multiaddr, multiaddr } from '@multiformats/multiaddr';
import { ENR, SignableENR } from '@nethermindeth/enr';

import { AZTEC_ENR_CLIENT_VERSION_KEY, AZTEC_ENR_KEY } from '../types/index.js';
import { convertToMultiaddr, createLibP2PPeerIdFromPrivateKey } from '../util.js';
Expand Down
4 changes: 2 additions & 2 deletions yarn-project/p2p/src/services/discv5/discV5_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { sleep } from '@aztec/foundation/sleep';
import { type ComponentsVersions, checkCompressedComponentVersion } from '@aztec/stdlib/versioning';
import { OtelMetricsAdapter, type TelemetryClient, getTelemetryClient } from '@aztec/telemetry-client';

import { Discv5, type Discv5EventEmitter, type IDiscv5CreateOptions } from '@chainsafe/discv5';
import { ENR, SignableENR } from '@chainsafe/enr';
import type { PeerId } from '@libp2p/interface';
import { type Multiaddr, multiaddr } from '@multiformats/multiaddr';
import { Discv5, type Discv5EventEmitter, type IDiscv5CreateOptions } from '@nethermindeth/discv5';
import { ENR, SignableENR } from '@nethermindeth/enr';
import EventEmitter from 'events';

import type { P2PConfig } from '../../config.js';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import { openTmpStore } from '@aztec/kv-store/lmdb-v2';
import { emptyChainConfig } from '@aztec/stdlib/config';
import { getTelemetryClient } from '@aztec/telemetry-client';

import type { IDiscv5CreateOptions } from '@chainsafe/discv5';
import { jest } from '@jest/globals';
import type { PeerId } from '@libp2p/interface';
import { createSecp256k1PeerId } from '@libp2p/peer-id-factory';
import type { IDiscv5CreateOptions } from '@nethermindeth/discv5';

import { BootstrapNode } from '../../bootstrap/bootstrap.js';
import { type BootnodeConfig, type P2PConfig, getP2PDefaultConfig } from '../../config.js';
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/p2p/src/services/dummy_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import type { PeerInfo } from '@aztec/stdlib/interfaces/server';
import type { Gossipable, PeerErrorSeverity } from '@aztec/stdlib/p2p';
import { Tx, TxHash } from '@aztec/stdlib/tx';

import type { ENR } from '@chainsafe/enr';
import type { PeerId } from '@libp2p/interface';
import type { ENR } from '@nethermindeth/enr';
import EventEmitter from 'events';

import type { PeerManagerInterface } from './peer-manager/interface.js';
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/p2p/src/services/libp2p/libp2p_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import type { UInt64 } from '@aztec/stdlib/types';
import { compressComponentVersions } from '@aztec/stdlib/versioning';
import { Attributes, OtelMetricsAdapter, type TelemetryClient, WithTracer, trackSpan } from '@aztec/telemetry-client';

import { ENR } from '@chainsafe/enr';
import {
type GossipSub,
type GossipSubComponents,
Expand All @@ -47,6 +46,7 @@ import { type Message, type MultiaddrConnection, type PeerId, TopicValidatorResu
import type { ConnectionManager } from '@libp2p/interface-internal';
import { mplex } from '@libp2p/mplex';
import { tcp } from '@libp2p/tcp';
import { ENR } from '@nethermindeth/enr';
import { createLibp2p } from 'libp2p';

import type { P2PConfig } from '../../config.js';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ import type {
import { PeerErrorSeverity } from '@aztec/stdlib/p2p';
import { Attributes, getTelemetryClient } from '@aztec/telemetry-client';

import { type ENR, SignableENR } from '@chainsafe/enr';
import { jest } from '@jest/globals';
import type { PeerId } from '@libp2p/interface';
import { peerIdFromString } from '@libp2p/peer-id';
import { createSecp256k1PeerId } from '@libp2p/peer-id-factory';
import { multiaddr } from '@multiformats/multiaddr';
import { type ENR, SignableENR } from '@nethermindeth/enr';
import { type MockProxy, mock } from 'jest-mock-extended';
import { generatePrivateKey } from 'viem/accounts';

Expand Down
2 changes: 1 addition & 1 deletion yarn-project/p2p/src/services/peer-manager/peer_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import type { PeerInfo, WorldStateSynchronizer } from '@aztec/stdlib/interfaces/
import type { PeerErrorSeverity } from '@aztec/stdlib/p2p';
import { type TelemetryClient, trackSpan } from '@aztec/telemetry-client';

import { ENR } from '@chainsafe/enr';
import type { Connection, PeerId } from '@libp2p/interface';
import { peerIdFromString } from '@libp2p/peer-id';
import type { Multiaddr } from '@multiformats/multiaddr';
import { ENR } from '@nethermindeth/enr';
import { inspect } from 'util';

import type { P2PConfig } from '../../config.js';
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/p2p/src/services/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import type { PeerInfo } from '@aztec/stdlib/interfaces/server';
import type { BlockAttestation, BlockProposal, Gossipable } from '@aztec/stdlib/p2p';
import type { Tx } from '@aztec/stdlib/tx';

import type { ENR } from '@chainsafe/enr';
import type { PeerId } from '@libp2p/interface';
import type { ENR } from '@nethermindeth/enr';
import type EventEmitter from 'events';

import type { P2PReqRespConfig } from './reqresp/config.js';
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/p2p/src/test-helpers/make-enrs.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { ChainConfig } from '@aztec/stdlib/config';

import { SignableENR } from '@chainsafe/enr';
import { multiaddr } from '@multiformats/multiaddr';
import { SignableENR } from '@nethermindeth/enr';

import { convertToMultiaddr, createLibP2PPeerIdFromPrivateKey } from '../util.js';
import { setAztecEnrKey } from '../versioning.js';
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/p2p/src/test-helpers/reqresp-nodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import type { Tx } from '@aztec/stdlib/tx';
import { compressComponentVersions } from '@aztec/stdlib/versioning';
import { type TelemetryClient, getTelemetryClient } from '@aztec/telemetry-client';

import { SignableENR } from '@chainsafe/enr';
import { gossipsub } from '@chainsafe/libp2p-gossipsub';
import { noise } from '@chainsafe/libp2p-noise';
import { yamux } from '@chainsafe/libp2p-yamux';
Expand All @@ -27,6 +26,7 @@ import type { PeerId } from '@libp2p/interface';
import { createSecp256k1PeerId } from '@libp2p/peer-id-factory';
import { tcp } from '@libp2p/tcp';
import { multiaddr } from '@multiformats/multiaddr';
import { SignableENR } from '@nethermindeth/enr';
import getPort from 'get-port';
import { type Libp2p, type Libp2pOptions, createLibp2p } from 'libp2p';

Expand Down
2 changes: 1 addition & 1 deletion yarn-project/p2p/src/versioning.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { EthAddress } from '@aztec/foundation/eth-address';
import type { ChainConfig } from '@aztec/stdlib/config';

import type { SignableENR } from '@chainsafe/enr';
import type { SignableENR } from '@nethermindeth/enr';
import { type MockProxy, mock } from 'jest-mock-extended';

import { AZTEC_ENR_KEY } from './types/index.js';
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/p2p/src/versioning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
getComponentsVersionsFromConfig,
} from '@aztec/stdlib/versioning';

import type { SignableENR } from '@chainsafe/enr';
import type { SignableENR } from '@nethermindeth/enr';
import xxhashFactory from 'xxhash-wasm';

import { AZTEC_ENR_CLIENT_VERSION_KEY, AZTEC_ENR_KEY } from './types/index.js';
Expand Down
Loading
Loading