chia-network-scanner
Version:
Scans the Chia network for active full nodes
21 lines (20 loc) • 694 B
TypeScript
import { NetworkScannerOptions } from './options';
import { Peer } from './peer';
declare class ChiaNetworkScanner {
private readonly options;
private readonly queue;
private peers;
private scanInProgress;
constructor(options: NetworkScannerOptions);
/**
* The scan is started from the full node provided in the options.
*/
scan(): Promise<Peer[]>;
/**
* Peers are added to the async queue and a graph traversal of the network is performed.
*
* The concurrency parameter passed in the constructor specifies how many of these are executed concurrently via the event loop.
*/
private processPeer;
}
export { ChiaNetworkScanner };