Commit 825ba9af authored by Luke Champine's avatar Luke Champine Committed by GitHub

Merge pull request #1594 from NebulousLabs/miner-not-default

Minor Miner Changes
parents 1d968168 d8dca02c
......@@ -44,7 +44,9 @@ func (m *Miner) ProcessConsensusChange(cc modules.ConsensusChange) {
// There is a new parent block, the source block should be updated to keep
// the stale rate as low as possible.
m.newSourceBlock()
if cc.Synced {
m.newSourceBlock()
}
m.persist.RecentChange = cc.ID
err := m.save()
if err != nil {
......
......@@ -165,7 +165,7 @@ func main() {
root.Flags().BoolVarP(&globalConfig.Siad.NoBootstrap, "no-bootstrap", "", false, "disable bootstrapping on this run")
root.Flags().BoolVarP(&globalConfig.Siad.Profile, "profile", "", false, "enable profiling")
root.Flags().StringVarP(&globalConfig.Siad.RPCaddr, "rpc-addr", "", ":9981", "which port the gateway listens on")
root.Flags().StringVarP(&globalConfig.Siad.Modules, "modules", "M", "cghmrtw", "enabled modules, see 'siad modules' for more info")
root.Flags().StringVarP(&globalConfig.Siad.Modules, "modules", "M", "cghrtw", "enabled modules, see 'siad modules' for more info")
root.Flags().BoolVarP(&globalConfig.Siad.AuthenticateAPI, "authenticate-api", "", false, "enable API password protection")
root.Flags().BoolVarP(&globalConfig.Siad.AllowAPIBind, "disable-api-security", "", false, "allow siad to listen on a non-localhost address (DANGEROUS)")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment