Page MenuHomePhabricator

Set InitMessage for txindex migration

Authored by markblundeberg on May 25 2019, 18:54.



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

Diff Detail

rABC Bitcoin ABC
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

This revision is now accepted and ready to land.May 26 2019, 18:20