Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(core-p2p): remove unused NetworkMonitor.getServer() #2829

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/core-interfaces/src/core-p2p/network-monitor.ts
Expand Up @@ -27,7 +27,6 @@ export interface INetworkMonitor {
syncWithNetwork(fromBlockHeight: number, maxParallelDownloads?: number): Promise<Interfaces.IBlockData[]>;
broadcastBlock(block: Interfaces.IBlock): Promise<void>;
broadcastTransactions(transactions: Interfaces.ITransaction[]): Promise<void>;
getServer(): SocketCluster;
setServer(server: SocketCluster): void;
stopServer(): void;
}
6 changes: 1 addition & 5 deletions packages/core-p2p/src/network-monitor.ts
Expand Up @@ -17,7 +17,7 @@ import { NetworkState } from "./network-state";
import { checkDNS, checkNTP } from "./utils";

export class NetworkMonitor implements P2P.INetworkMonitor {
public server: SocketCluster;
private server: SocketCluster;
public config: any;
public nextUpdateNetworkStatusScheduled: boolean;
private initializing: boolean = true;
Expand Down Expand Up @@ -46,10 +46,6 @@ export class NetworkMonitor implements P2P.INetworkMonitor {
this.storage = storage;
}

public getServer(): SocketCluster {
return this.server;
}

public setServer(server: SocketCluster): void {
this.server = server;
}
Expand Down