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
Branch
initmessage
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 5987
Build 10033: Bitcoin ABC Buildbot (legacy)
Build 10032: arc lint + arc unit

Event Timeline

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