diff options
author | Russell Yanofsky <russ@yanofsky.org> | 2020-04-04 11:44:39 -0400 |
---|---|---|
committer | Russell Yanofsky <russ@yanofsky.org> | 2020-04-04 11:44:39 -0400 |
commit | d6815a2313158862d448733954a73520f223deb6 (patch) | |
tree | f3e77851ecc37d8823109f6fdaefc207e516dcc9 /src/validationinterface.h | |
parent | c8971547d9c9460fcbec6f54888df83f002c3dfd (diff) |
refactor: drop boost::signals2 in validationinterface
Stop using boost::signals2 internally in validationinterface. Replace with
std::list and Add/Remove/Clear/Iterate helper functions.
Motivation for change is to reduce dependencies and avoid issues happening with
boost versions before 1.59:
https://github.com/bitcoin/bitcoin/issues/18517
https://github.com/bitcoin/bitcoin/pull/18471
Diffstat (limited to 'src/validationinterface.h')
-rw-r--r-- | src/validationinterface.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/validationinterface.h b/src/validationinterface.h index f9a359b7ad..cb0204a555 100644 --- a/src/validationinterface.h +++ b/src/validationinterface.h @@ -171,9 +171,7 @@ protected: * Notifies listeners that a block which builds directly on our current tip * has been received and connected to the headers tree, though not validated yet */ virtual void NewPoWValidBlock(const CBlockIndex *pindex, const std::shared_ptr<const CBlock>& block) {}; - friend void ::RegisterSharedValidationInterface(std::shared_ptr<CValidationInterface>); - friend void ::UnregisterValidationInterface(CValidationInterface*); - friend void ::UnregisterAllValidationInterfaces(); + friend class CMainSignals; }; struct MainSignalsInstance; |