dcrd/internal
Dave Collins 5d8df9ceb1
mining: Wait for initial sync to generate template.
Currently, when the server is started with a chain that is already
synced, a new block template will not be generated until either a new
template is forced to be generated via the regentemplate RPC or a new
block is connected.

In practice, the most observable consequence is that getwork won't
return results right away when restarting the server when the chain is
already synced until either of the aforementioned cases happened which
makes it appear as if it is hung.

This resolves that by modifying the logic of the background block
template generator to wait for the initial chain sync to complete prior
to attempting to generate the first template unless unsynced mining is
allowed.
2022-03-13 12:30:32 -05:00
..
fees fees: Remove deprecated DisableLog. 2020-12-28 13:13:47 -06:00
limits multi: update build tags to pref. go1.17 syntax. 2021-10-19 20:21:44 -05:00
mempool build: update golangci-lint to v1.44.1 2022-02-18 12:48:40 -06:00
mining mining: Wait for initial sync to generate template. 2022-03-13 12:30:32 -05:00
netsync netsync: Remove unused tx submission processing. 2021-12-05 02:58:49 -06:00
progresslog progresslog: Make header logging concurrent safe. 2021-11-23 17:24:58 -06:00
rpcserver build: update golangci-lint to v1.44.1 2022-02-18 12:48:40 -06:00
staging math/uint256: Prepare v1.0.0. 2021-12-09 17:25:56 -06:00
version release: Bump for 1.8 release cycle. 2021-12-17 17:39:24 -06:00