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
commit 8ea33c67fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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