You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
b47bd95 kernel: De-globalize fReindex (TheCharlatan)
Pull request description:
fReindex is one of the last remaining globals exposed by the kernel library, so move it into the blockstorage class to reduce the amount of global mutable state and make the kernel library a bit less awkward to use.
---
This pull request is part of the [libbitcoinkernel project](bitcoin/bitcoin#27587).
ACKs for top commit:
achow101:
ACK b47bd95
ryanofsky:
Code review ACK b47bd95. I rereviewed the whole PR, but the only change since last review was reverting the bugfix bitcoin/bitcoin#29817 (comment) and make the change a pure refactoring.
mzumsande:
Code Review ACK b47bd95
stickies-v:
ACK b47bd95
Tree-SHA512: f7399d01f93bc0c0c7428fe95d19b9d29b4ed00a4f1deabca78fb0c4fecb434ec971e890feecb105938b5247c926850b1b7b4a4a9caa333a061e40777d0c8463
// Always notify the UI if a new block tip was connected
3402
-
if (kernel::IsInterrupted(m_chainman.GetNotifications().blockTip(GetSynchronizationState(still_in_ibd), *pindexNewTip))) {
3401
+
if (kernel::IsInterrupted(m_chainman.GetNotifications().blockTip(GetSynchronizationState(still_in_ibd, m_chainman.m_blockman.m_reindexing), *pindexNewTip))) {
3403
3402
// Just breaking and returning success for now. This could
3404
3403
// be changed to bubble up the kernel::Interrupted value to
3405
3404
// the caller so the caller could distinguish between
0 commit comments