Set InitMessage for txindex migration


Set InitMessage for txindex migration

This makes it so that when RPC calls are tried during the initial migration
(which takes ~ an hour on mainnet) they error with "-28 Upgrading txindex database"
instead of the misleading "-28 Verifying blocks...".

(why it's needed: only InitMessage is connected to SetRPCWarmupStatus)

Depends on D2924

Test Plan:
build; try it out
On testnet I confirm that during migration, running bitcoin-cli getinfo gives:

error code: -28
error message:
Upgrading txindex database

Reviewers: jasonbcox, Fabien, #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D3115


Event Timeline

Mark Lundeberg <36528214+markblundeberg@users.noreply.github.com> committed rSTAGINGdee3d6da4e83: Set InitMessage for txindex migration (authored by Mark Lundeberg <36528214+markblundeberg@users.noreply.github.com>).May 27 2019, 00:18