@@ -5,8 +5,6 @@ import { retryUntil } from '@aztec/foundation/retry';
5
5
import { sleep } from '@aztec/foundation/sleep' ;
6
6
import { type AztecKVStore } from '@aztec/kv-store' ;
7
7
import { openTmpStore } from '@aztec/kv-store/utils' ;
8
- import { type TelemetryClient } from '@aztec/telemetry-client' ;
9
- import { NoopTelemetryClient } from '@aztec/telemetry-client/noop' ;
10
8
11
9
import { expect , jest } from '@jest/globals' ;
12
10
@@ -32,7 +30,6 @@ describe('In-Memory P2P Client', () => {
32
30
let p2pService : Mockify < P2PService > ;
33
31
let kvStore : AztecKVStore ;
34
32
let client : P2PClient ;
35
- const telemetryClient : TelemetryClient = new NoopTelemetryClient ( ) ;
36
33
37
34
beforeEach ( ( ) => {
38
35
txPool = {
@@ -80,7 +77,7 @@ describe('In-Memory P2P Client', () => {
80
77
} ;
81
78
82
79
kvStore = openTmpStore ( ) ;
83
- client = new P2PClient ( kvStore , blockSource , mempools , p2pService , 0 , telemetryClient ) ;
80
+ client = new P2PClient ( kvStore , blockSource , mempools , p2pService , 0 ) ;
84
81
} ) ;
85
82
86
83
const advanceToProvenBlock = async ( getProvenBlockNumber : number , provenEpochNumber = getProvenBlockNumber ) => {
@@ -150,7 +147,7 @@ describe('In-Memory P2P Client', () => {
150
147
await client . start ( ) ;
151
148
await client . stop ( ) ;
152
149
153
- const client2 = new P2PClient ( kvStore , blockSource , mempools , p2pService , 0 , telemetryClient ) ;
150
+ const client2 = new P2PClient ( kvStore , blockSource , mempools , p2pService , 0 ) ;
154
151
expect ( client2 . getSyncedLatestBlockNum ( ) ) . toEqual ( client . getSyncedLatestBlockNum ( ) ) ;
155
152
} ) ;
156
153
@@ -165,7 +162,7 @@ describe('In-Memory P2P Client', () => {
165
162
} ) ;
166
163
167
164
it ( 'deletes txs after waiting the set number of blocks' , async ( ) => {
168
- client = new P2PClient ( kvStore , blockSource , mempools , p2pService , 10 , telemetryClient ) ;
165
+ client = new P2PClient ( kvStore , blockSource , mempools , p2pService , 10 ) ;
169
166
blockSource . setProvenBlockNumber ( 0 ) ;
170
167
await client . start ( ) ;
171
168
expect ( txPool . deleteTxs ) . not . toHaveBeenCalled ( ) ;
@@ -182,7 +179,7 @@ describe('In-Memory P2P Client', () => {
182
179
} ) ;
183
180
184
181
it ( 'stores and returns epoch proof quotes' , async ( ) => {
185
- client = new P2PClient ( kvStore , blockSource , mempools , p2pService , 0 , telemetryClient ) ;
182
+ client = new P2PClient ( kvStore , blockSource , mempools , p2pService , 0 ) ;
186
183
187
184
blockSource . setProvenEpochNumber ( 2 ) ;
188
185
await client . start ( ) ;
@@ -213,7 +210,7 @@ describe('In-Memory P2P Client', () => {
213
210
} ) ;
214
211
215
212
it ( 'deletes expired proof quotes' , async ( ) => {
216
- client = new P2PClient ( kvStore , blockSource , mempools , p2pService , 0 , telemetryClient ) ;
213
+ client = new P2PClient ( kvStore , blockSource , mempools , p2pService , 0 ) ;
217
214
218
215
blockSource . setProvenEpochNumber ( 1 ) ;
219
216
blockSource . setProvenBlockNumber ( 1 ) ;
@@ -276,7 +273,7 @@ describe('In-Memory P2P Client', () => {
276
273
} ) ;
277
274
278
275
it ( 'deletes txs created from a pruned block' , async ( ) => {
279
- client = new P2PClient ( kvStore , blockSource , mempools , p2pService , 10 , telemetryClient ) ;
276
+ client = new P2PClient ( kvStore , blockSource , mempools , p2pService , 10 ) ;
280
277
blockSource . setProvenBlockNumber ( 0 ) ;
281
278
await client . start ( ) ;
282
279
@@ -298,7 +295,7 @@ describe('In-Memory P2P Client', () => {
298
295
} ) ;
299
296
300
297
it ( 'moves mined and valid txs back to the pending set' , async ( ) => {
301
- client = new P2PClient ( kvStore , blockSource , mempools , p2pService , 10 , telemetryClient ) ;
298
+ client = new P2PClient ( kvStore , blockSource , mempools , p2pService , 10 ) ;
302
299
blockSource . setProvenBlockNumber ( 0 ) ;
303
300
await client . start ( ) ;
304
301
0 commit comments