mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 14:53:43 +01:00
interfaces, chain, refactor: Remove unused getTipLocator
Also removed CChain::GetLocator() and replaced its call with GetLocator() which uses LocatorEntries instead. Co-authored-by: ryanofsky <ryan@ofsky.org> Co-authored-by: l0rinc <l0rinc@users.noreply.github.com>
This commit is contained in:
@@ -2919,7 +2919,7 @@ bool Chainstate::FlushStateToDisk(
|
||||
}
|
||||
if (full_flush_completed && m_chainman.m_options.signals) {
|
||||
// Update best block in wallet (so we can detect restored wallets).
|
||||
m_chainman.m_options.signals->ChainStateFlushed(this->GetRole(), m_chain.GetLocator());
|
||||
m_chainman.m_options.signals->ChainStateFlushed(this->GetRole(), GetLocator(m_chain.Tip()));
|
||||
}
|
||||
} catch (const std::runtime_error& e) {
|
||||
return FatalError(m_chainman.GetNotifications(), state, strprintf(_("System error while flushing: %s"), e.what()));
|
||||
|
||||
Reference in New Issue
Block a user