@@ -25,7 +25,7 @@ struct MainSignalsInstance {
25
25
boost::signals2::signal<void (const std::shared_ptr<const CBlock> &, const CBlockIndex *pindex, const std::vector<CTransactionRef>&)> BlockConnected;
26
26
boost::signals2::signal<void (const std::shared_ptr<const CBlock> &)> BlockDisconnected;
27
27
boost::signals2::signal<void (const CTransactionRef &)> TransactionRemovedFromMempool;
28
- boost::signals2::signal<void (const CBlockLocator &)> SetBestChain ;
28
+ boost::signals2::signal<void (const CBlockLocator &)> ChainStateFlushed ;
29
29
boost::signals2::signal<void (const uint256 &)> Inventory;
30
30
boost::signals2::signal<void (int64_t nBestBlockTime, CConnman* connman)> Broadcast;
31
31
boost::signals2::signal<void (const CBlock&, const CValidationState&)> BlockChecked;
@@ -80,7 +80,7 @@ void RegisterValidationInterface(CValidationInterface* pwalletIn) {
80
80
g_signals.m_internals ->BlockConnected .connect (boost::bind (&CValidationInterface::BlockConnected, pwalletIn, _1, _2, _3));
81
81
g_signals.m_internals ->BlockDisconnected .connect (boost::bind (&CValidationInterface::BlockDisconnected, pwalletIn, _1));
82
82
g_signals.m_internals ->TransactionRemovedFromMempool .connect (boost::bind (&CValidationInterface::TransactionRemovedFromMempool, pwalletIn, _1));
83
- g_signals.m_internals ->SetBestChain .connect (boost::bind (&CValidationInterface::SetBestChain , pwalletIn, _1));
83
+ g_signals.m_internals ->ChainStateFlushed .connect (boost::bind (&CValidationInterface::ChainStateFlushed , pwalletIn, _1));
84
84
g_signals.m_internals ->Inventory .connect (boost::bind (&CValidationInterface::Inventory, pwalletIn, _1));
85
85
g_signals.m_internals ->Broadcast .connect (boost::bind (&CValidationInterface::ResendWalletTransactions, pwalletIn, _1, _2));
86
86
g_signals.m_internals ->BlockChecked .connect (boost::bind (&CValidationInterface::BlockChecked, pwalletIn, _1, _2));
@@ -91,7 +91,7 @@ void UnregisterValidationInterface(CValidationInterface* pwalletIn) {
91
91
g_signals.m_internals ->BlockChecked .disconnect (boost::bind (&CValidationInterface::BlockChecked, pwalletIn, _1, _2));
92
92
g_signals.m_internals ->Broadcast .disconnect (boost::bind (&CValidationInterface::ResendWalletTransactions, pwalletIn, _1, _2));
93
93
g_signals.m_internals ->Inventory .disconnect (boost::bind (&CValidationInterface::Inventory, pwalletIn, _1));
94
- g_signals.m_internals ->SetBestChain .disconnect (boost::bind (&CValidationInterface::SetBestChain , pwalletIn, _1));
94
+ g_signals.m_internals ->ChainStateFlushed .disconnect (boost::bind (&CValidationInterface::ChainStateFlushed , pwalletIn, _1));
95
95
g_signals.m_internals ->TransactionAddedToMempool .disconnect (boost::bind (&CValidationInterface::TransactionAddedToMempool, pwalletIn, _1));
96
96
g_signals.m_internals ->BlockConnected .disconnect (boost::bind (&CValidationInterface::BlockConnected, pwalletIn, _1, _2, _3));
97
97
g_signals.m_internals ->BlockDisconnected .disconnect (boost::bind (&CValidationInterface::BlockDisconnected, pwalletIn, _1));
@@ -107,7 +107,7 @@ void UnregisterAllValidationInterfaces() {
107
107
g_signals.m_internals ->BlockChecked .disconnect_all_slots ();
108
108
g_signals.m_internals ->Broadcast .disconnect_all_slots ();
109
109
g_signals.m_internals ->Inventory .disconnect_all_slots ();
110
- g_signals.m_internals ->SetBestChain .disconnect_all_slots ();
110
+ g_signals.m_internals ->ChainStateFlushed .disconnect_all_slots ();
111
111
g_signals.m_internals ->TransactionAddedToMempool .disconnect_all_slots ();
112
112
g_signals.m_internals ->BlockConnected .disconnect_all_slots ();
113
113
g_signals.m_internals ->BlockDisconnected .disconnect_all_slots ();
@@ -166,9 +166,9 @@ void CMainSignals::BlockDisconnected(const std::shared_ptr<const CBlock> &pblock
166
166
});
167
167
}
168
168
169
- void CMainSignals::SetBestChain (const CBlockLocator &locator) {
169
+ void CMainSignals::ChainStateFlushed (const CBlockLocator &locator) {
170
170
m_internals->m_schedulerClient .AddToProcessQueue ([locator, this ] {
171
- m_internals->SetBestChain (locator);
171
+ m_internals->ChainStateFlushed (locator);
172
172
});
173
173
}
174
174
0 commit comments