mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-01 19:21:28 +02:00
multiprocess: Add new bitcoin-gui, bitcoin-qt, bitcoin-wallet init implementations
Add separate init implementations instead of sharing existing bitcoind and bitcoin-node ones, so they can start to be differentiated in upcoming commits with node and wallet code no longer linked into the bitcoin-gui binary and wallet code no longer linked into the bitcoin-node binary.
This commit is contained in:
@ -8,6 +8,7 @@
|
||||
|
||||
#include <chainparams.h>
|
||||
#include <chainparamsbase.h>
|
||||
#include <interfaces/init.h>
|
||||
#include <logging.h>
|
||||
#include <util/system.h>
|
||||
#include <util/translation.h>
|
||||
@ -83,6 +84,13 @@ int main(int argc, char* argv[])
|
||||
util::WinCmdLineArgs winArgs;
|
||||
std::tie(argc, argv) = winArgs.get();
|
||||
#endif
|
||||
|
||||
int exit_status;
|
||||
std::unique_ptr<interfaces::Init> init = interfaces::MakeWalletInit(argc, argv, exit_status);
|
||||
if (!init) {
|
||||
return exit_status;
|
||||
}
|
||||
|
||||
SetupEnvironment();
|
||||
RandomInit();
|
||||
try {
|
||||
|
Reference in New Issue
Block a user