Skip to content
This repository has been archived by the owner on Dec 3, 2018. It is now read-only.

Commit

Permalink
make miner job and balance maintainer mutually exclusive
Browse files Browse the repository at this point in the history
  • Loading branch information
avahowell committed Oct 6, 2016
1 parent dd1b58a commit d0597c0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions sia-ant/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,17 @@ func runSiaAnt(siadPath, apiAddr, rpcAddr, hostAddr, siaDirectory string, runGat
if runGateway {
go j.gatewayConnectability()
}

if runRenter {
go j.storageRenter()
}
if runHost {
go j.jobHost()
}

go j.balanceMaintainer(desiredCurrency)
if runMining {
go j.blockMining()
} else {
go j.balanceMaintainer(desiredCurrency)
}

siad.Wait()
return 0
Expand Down

0 comments on commit d0597c0

Please sign in to comment.