mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
refactor: replace util::Ref by std::any (C++17)
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#ifndef BITCOIN_INIT_H
|
||||
#define BITCOIN_INIT_H
|
||||
|
||||
#include <any>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
@@ -22,9 +23,6 @@ struct BlockAndHeaderTipInfo;
|
||||
namespace boost {
|
||||
class thread_group;
|
||||
} // namespace boost
|
||||
namespace util {
|
||||
class Ref;
|
||||
} // namespace util
|
||||
|
||||
/** Interrupt threads */
|
||||
void Interrupt(NodeContext& node);
|
||||
@@ -66,7 +64,7 @@ bool AppInitInterfaces(NodeContext& node);
|
||||
* @note This should only be done after daemonization. Call Shutdown() if this function fails.
|
||||
* @pre Parameters should be parsed and config file should be read, AppInitLockDataDirectory should have been called.
|
||||
*/
|
||||
bool AppInitMain(const util::Ref& context, NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info = nullptr);
|
||||
bool AppInitMain(const std::any& context, NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info = nullptr);
|
||||
|
||||
/**
|
||||
* Register all arguments with the ArgsManager
|
||||
|
||||
Reference in New Issue
Block a user