mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-31 02:46:01 +02:00
kernel: make blockTip index const
Notification interface subscribers need to view, but not mutate, the index.
This commit is contained in:
@@ -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 {};
|
||||
|
||||
Reference in New Issue
Block a user