19const char* EXE_NAME =
"bitcoin-gui";
31 std::unique_ptr<interfaces::WalletLoader> makeWalletLoader(
interfaces::Chain& chain)
override
33 return MakeWalletLoader(chain, *
Assert(m_node.args));
41 bool canListenIpc()
override {
return true; }
42 const char* exeName()
override {
return EXE_NAME; }
44 std::unique_ptr<interfaces::Ipc> m_ipc;
52 return std::make_unique<init::BitcoinGuiInit>(argc > 0 ? argv[0] :
"");
#define Assert(val)
Identity function.
void InitContext(NodeContext &node)
Initialize node context shutdown and args variables.
std::unique_ptr< Node > MakeNode(node::NodeContext &context)
Return implementation of Node interface.
std::unique_ptr< Echo > MakeEcho()
Return implementation of Echo interface.
std::unique_ptr< Init > MakeGuiInit(int argc, char *argv[])
Return implementation of Init interface for the gui process.
std::unique_ptr< Ipc > MakeIpc(const char *exe_name, const char *process_argv0, Init &init)
Return implementation of Ipc interface.
std::unique_ptr< Chain > MakeChain(node::NodeContext &node)
Return implementation of Chain interface.