#3711: Generate contracts only on network

This commit is contained in:
Daniel Barbera 2022-05-24 16:26:40 +02:00
parent cb4fd4cf90
commit 37e32ee0f8

@ -155,7 +155,7 @@ function getRandomReward(): ICodingContractReward {
}
function getRandomServer(): BaseServer {
const servers = GetAllServers();
const servers = GetAllServers().filter((server: BaseServer) => server.serversOnNetwork.length !== 0);
let randIndex = getRandomInt(0, servers.length - 1);
let randServer = servers[randIndex];