kernel: make blockTip index const

Notification interface subscribers need to view, but not mutate,
the index.
This commit is contained in:
stickies-v
2025-09-05 15:46:44 +01:00
parent 37c21ebe40
commit 75d9b72475
4 changed files with 4 additions and 4 deletions

View File

@@ -74,7 +74,7 @@ int main(int argc, char* argv[])
class KernelNotifications : public kernel::Notifications
{
public:
kernel::InterruptResult blockTip(SynchronizationState, CBlockIndex&, double) override
kernel::InterruptResult blockTip(SynchronizationState, const CBlockIndex&, double) override
{
std::cout << "Block tip changed" << std::endl;
return {};