Merge pull request #3740 from xRalic/fixBadContracts

MISC: FIX #3711 Generate contracts only on network
This commit is contained in:
hydroflame
2022-05-24 11:44:05 -04:00
committed by GitHub

View File

@@ -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];