mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-21 07:39:08 +01:00
kernel: make blockTip index const
Notification interface subscribers need to view, but not mutate, the index.
This commit is contained in:
@@ -48,7 +48,7 @@ static void AlertNotify(const std::string& strMessage)
|
||||
|
||||
namespace node {
|
||||
|
||||
kernel::InterruptResult KernelNotifications::blockTip(SynchronizationState state, CBlockIndex& index, double verification_progress)
|
||||
kernel::InterruptResult KernelNotifications::blockTip(SynchronizationState state, const CBlockIndex& index, double verification_progress)
|
||||
{
|
||||
{
|
||||
LOCK(m_tip_block_mutex);
|
||||
|
||||
Reference in New Issue
Block a user