File tree Expand file tree Collapse file tree 3 files changed +0
-25
lines changed
__tests__/unit/core-blockchain
core-kernel/src/contracts/blockchain Expand file tree Collapse file tree 3 files changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,6 @@ describe("Blockchain", () => {
115
115
eventDispatcherService . dispatch = jest . fn ( ) ;
116
116
117
117
peerNetworkMonitor . cleansePeers = jest . fn ( ) ;
118
- peerNetworkMonitor . updateNetworkStatus = jest . fn ( ) ;
119
118
peerNetworkMonitor . broadcastBlock = jest . fn ( ) ;
120
119
peerNetworkMonitor . checkNetworkHealth = jest . fn ( ) ;
121
120
@@ -309,16 +308,6 @@ describe("Blockchain", () => {
309
308
} ) ;
310
309
} ) ;
311
310
312
- describe ( "updateNetworkStatus" , ( ) => {
313
- it ( "should call updateNetworkStatus on peerNetworkMonitor" , ( ) => {
314
- const blockchain = sandbox . app . resolve < Blockchain > ( Blockchain ) ;
315
-
316
- blockchain . updateNetworkStatus ( ) ;
317
-
318
- expect ( peerNetworkMonitor . updateNetworkStatus ) . toBeCalledTimes ( 1 ) ;
319
- } ) ;
320
- } ) ;
321
-
322
311
describe ( "clearAndStopQueue" , ( ) => {
323
312
it ( "should set state.lastDownloadedBlock from this.getLastBlock() and clear queue" , async ( ) => {
324
313
const blockchain = sandbox . app . resolve < Blockchain > ( Blockchain ) ;
Original file line number Diff line number Diff line change @@ -173,15 +173,6 @@ export class Blockchain implements Contracts.Blockchain.Blockchain {
173
173
this . setWakeUp ( ) ;
174
174
}
175
175
176
- // TODO: Check if required
177
- /**
178
- * Update network status.
179
- * @return {void }
180
- */
181
- public async updateNetworkStatus ( ) : Promise < void > {
182
- await this . networkMonitor . updateNetworkStatus ( ) ;
183
- }
184
-
185
176
/**
186
177
* Clear and stop the queue.
187
178
* @return {void }
Original file line number Diff line number Diff line change @@ -34,11 +34,6 @@ export interface Blockchain {
34
34
* Reset the wakeup timeout.
35
35
*/
36
36
resetWakeUp ( ) : void ;
37
- /**
38
- * Update network status.
39
- * @return {void }
40
- */
41
- updateNetworkStatus ( ) : Promise < void > ;
42
37
43
38
/**
44
39
* Clear and stop the queue.
You can’t perform that action at this time.
0 commit comments