Skip to content

Commit 1df7701

Browse files
committed
refactor: Remove unused bool parameter in BlockNotifyGenesisWait()
1 parent dc5333d commit 1df7701

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/init.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@
5959
#include <validationinterface.h>
6060
#include <walletinitinterface.h>
6161

62+
#include <functional>
63+
#include <set>
6264
#include <stdint.h>
6365
#include <stdio.h>
64-
#include <set>
6566

6667
#ifndef WIN32
6768
#include <attributes.h>
@@ -622,7 +623,7 @@ static bool fHaveGenesis = false;
622623
static Mutex g_genesis_wait_mutex;
623624
static std::condition_variable g_genesis_wait_cv;
624625

625-
static void BlockNotifyGenesisWait(bool, const CBlockIndex *pBlockIndex)
626+
static void BlockNotifyGenesisWait(const CBlockIndex* pBlockIndex)
626627
{
627628
if (pBlockIndex != nullptr) {
628629
{
@@ -1826,7 +1827,7 @@ bool AppInitMain(NodeContext& node)
18261827
// No locking, as this happens before any background thread is started.
18271828
boost::signals2::connection block_notify_genesis_wait_connection;
18281829
if (::ChainActive().Tip() == nullptr) {
1829-
block_notify_genesis_wait_connection = uiInterface.NotifyBlockTip_connect(BlockNotifyGenesisWait);
1830+
block_notify_genesis_wait_connection = uiInterface.NotifyBlockTip_connect(std::bind(BlockNotifyGenesisWait, std::placeholders::_2));
18301831
} else {
18311832
fHaveGenesis = true;
18321833
}

0 commit comments

Comments
 (0)