adding maping port of miner

This commit is contained in:
minicx 2022-12-10 13:40:08 +03:00
parent 33e9c19140
commit d8632f5d41
1 changed files with 1 additions and 2 deletions

View File

@ -147,7 +147,6 @@ const farm: () => Promise<void> = async () => {
workersLoop:
for (const worker of workersGroups) {
logger.info(`Current worker:${worker.phoneNumber}\nBalance:${worker.balance}`);
{
let torConnection: any
try{
@ -414,7 +413,7 @@ const farm: () => Promise<void> = async () => {
let pararels: Promise<void>[] = [];
const miner = new Miner();
await miner.listen();
await miner.listen({port:(await findFreePorts(1))[0]});
const _ports = await findFreePorts(workers.length * 3);
logger.debug(`Is there port of miner:${_ports.indexOf(await miner.port)}, ${await miner.port}`)