Page MenuHomePhabricator

validation: Don't assume m_chain_tx_count in GuessVerificationProgress
ClosedPublic

Authored by PiRK on Sat, Apr 12, 07:57.

Details

Summary

In the context of an a descriptor import during assumeutxo background sync, the progress can not be estimated due to m_chain_tx_count being set to 0.

This is a partial backport of core#30909
https://github.com/bitcoin/bitcoin/pull/30909/commits/27f99b6d63b7ca2d4fcb9db3e88ed66c024c59d5

Depends on D17925

Test Plan

tested via the wallet_assumeutxo.py test on my dev branch ("Test loading descriptors during background sync")

This only affects logging in production builds, no change in behavior

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

PiRK requested review of this revision.Sat, Apr 12, 07:57
src/validation.cpp
6368 ↗(On Diff #53461)

we will eventually get to the nChainTx -> m_chain_tx_count renaming, so better to use the new name in this log so we don't forget to update it later

This revision is now accepted and ready to land.Mon, Apr 14, 08:51