Page MenuHomePhabricator

Set InitMessage for txindex migration
ClosedPublic

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

Details

Summary

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

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