{"action":"created","issue":{"url":"https://api.github.com/repos/btcsuite/btcd/issues/532","labels_url":"https://api.github.com/repos/btcsuite/btcd/issues/532/labels{/name}","comments_url":"https://api.github.com/repos/btcsuite/btcd/issues/532/comments","events_url":"https://api.github.com/repos/btcsuite/btcd/issues/532/events","html_url":"https://github.com/btcsuite/btcd/issues/532","id":113168716,"number":532,"title":"No miningaddr","user":{"login":"mathiasrw","id":1063454,"avatar_url":"https://avatars.githubusercontent.com/u/1063454?v=3","gravatar_id":"","url":"https://api.github.com/users/mathiasrw","html_url":"https://github.com/mathiasrw","followers_url":"https://api.github.com/users/mathiasrw/followers","following_url":"https://api.github.com/users/mathiasrw/following{/other_user}","gists_url":"https://api.github.com/users/mathiasrw/gists{/gist_id}","starred_url":"https://api.github.com/users/mathiasrw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathiasrw/subscriptions","organizations_url":"https://api.github.com/users/mathiasrw/orgs","repos_url":"https://api.github.com/users/mathiasrw/repos","events_url":"https://api.github.com/users/mathiasrw/events{/privacy}","received_events_url":"https://api.github.com/users/mathiasrw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/btcsuite/btcd/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-24T16:00:13Z","updated_at":"2015-10-24T16:26:09Z","closed_at":null,"body":"If one does not change the configuration to include `miningaddr` will the btcd still mine for at solution to the last broardcasted block? \r\n\r\nif so - when a hash for the last block that fits the puzzle is found - where will the mining reward go?\r\n"},"comment":{"url":"https://api.github.com/repos/btcsuite/btcd/issues/comments/150831373","html_url":"https://github.com/btcsuite/btcd/issues/532#issuecomment-150831373","issue_url":"https://api.github.com/repos/btcsuite/btcd/issues/532","id":150831373,"user":{"login":"davecgh","id":2115102,"avatar_url":"https://avatars.githubusercontent.com/u/2115102?v=3","gravatar_id":"","url":"https://api.github.com/users/davecgh","html_url":"https://github.com/davecgh","followers_url":"https://api.github.com/users/davecgh/followers","following_url":"https://api.github.com/users/davecgh/following{/other_user}","gists_url":"https://api.github.com/users/davecgh/gists{/gist_id}","starred_url":"https://api.github.com/users/davecgh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davecgh/subscriptions","organizations_url":"https://api.github.com/users/davecgh/orgs","repos_url":"https://api.github.com/users/davecgh/repos","events_url":"https://api.github.com/users/davecgh/events{/privacy}","received_events_url":"https://api.github.com/users/davecgh/received_events","type":"User","site_admin":false},"created_at":"2015-10-24T16:26:09Z","updated_at":"2015-10-24T16:26:09Z","body":"No, btcd does not mine by default because mining using the CPU on mainnet is a complete waste of effort now (and has been for quite some time) due to the massive hashing power provided by all the ASICs out there.  The probability of finding a block with CPU mining now is so astronomically small that it is effectively impossible.\r\n\r\nMining profitably on mainnet these days is quite a tricky proposition and requires a fair amount of research, investment in specialized hardware, etc.\r\n\r\nThe main reason btcd even provides CPU mining is for application developers who want to perform testing using its private simulation network capabilities (simnet difficulty is extremely low, and it's private to each person/entity, so it's trivial to mine).\r\n\r\nThat said, to more directly answer your question, attempting to enable mining without a mining address will result in btcd failing to start as shown below:\r\n\r\n> $ btcd --generate\r\n> loadConfig: the generate flag is set, but there are no mining addresses specified\r\n> Use btcd -h to show usage"}}