HomePhabricator

Set InitMessage for txindex migration

Description

Set InitMessage for txindex migration

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

Reviewers: jasonbcox, Fabien, #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

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

Details

Provenance
Mark Lundeberg <36528214+markblundeberg@users.noreply.github.com>Authored on May 25 2019, 07:28
markblundebergPushed on May 27 2019, 00:18
Reviewer
Restricted Project
Differential Revision
D3115: Set InitMessage for txindex migration
Parents
rABCb12ddc527a09: [txindex] Activate new transaction index code that runs in background
Branches
Unknown
Tags
Unknown

Event Timeline

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