File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 59
59
#include < validationinterface.h>
60
60
#include < walletinitinterface.h>
61
61
62
+ #include < functional>
63
+ #include < set>
62
64
#include < stdint.h>
63
65
#include < stdio.h>
64
- #include < set>
65
66
66
67
#ifndef WIN32
67
68
#include < attributes.h>
@@ -622,7 +623,7 @@ static bool fHaveGenesis = false;
622
623
static Mutex g_genesis_wait_mutex;
623
624
static std::condition_variable g_genesis_wait_cv;
624
625
625
- static void BlockNotifyGenesisWait (bool , const CBlockIndex * pBlockIndex)
626
+ static void BlockNotifyGenesisWait (const CBlockIndex* pBlockIndex)
626
627
{
627
628
if (pBlockIndex != nullptr ) {
628
629
{
@@ -1826,7 +1827,7 @@ bool AppInitMain(NodeContext& node)
1826
1827
// No locking, as this happens before any background thread is started.
1827
1828
boost::signals2::connection block_notify_genesis_wait_connection;
1828
1829
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) );
1830
1831
} else {
1831
1832
fHaveGenesis = true ;
1832
1833
}
You can’t perform that action at this time.
0 commit comments