mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
UPSTREAM MERGE BROKEN: Merge commit 'f617e05c38' into master
This commit is contained in:
commit
7f894ae00b
393 changed files with 7992 additions and 3340 deletions
|
|
@ -11,14 +11,15 @@
|
|||
#include <clientversion.h>
|
||||
#include <compat.h>
|
||||
#include <fs.h>
|
||||
#include <interfaces/chain.h>
|
||||
#include <rpc/server.h>
|
||||
#include <init.h>
|
||||
#include <noui.h>
|
||||
#include <shutdown.h>
|
||||
#include <util.h>
|
||||
#include <util/system.h>
|
||||
#include <httpserver.h>
|
||||
#include <httprpc.h>
|
||||
#include <utilstrencodings.h>
|
||||
#include <util/strencodings.h>
|
||||
#include <walletinitinterface.h>
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
@ -58,6 +59,9 @@ static void WaitForShutdown()
|
|||
//
|
||||
static bool AppInit(int argc, char* argv[])
|
||||
{
|
||||
InitInterfaces interfaces;
|
||||
interfaces.chain = interfaces::MakeChain();
|
||||
|
||||
bool fRet = false;
|
||||
|
||||
//
|
||||
|
|
@ -164,7 +168,7 @@ static bool AppInit(int argc, char* argv[])
|
|||
// If locking the data directory failed, exit immediately
|
||||
return false;
|
||||
}
|
||||
fRet = AppInitMain();
|
||||
fRet = AppInitMain(interfaces);
|
||||
}
|
||||
catch (const std::exception& e) {
|
||||
PrintExceptionContinue(&e, "AppInit()");
|
||||
|
|
@ -178,13 +182,17 @@ static bool AppInit(int argc, char* argv[])
|
|||
} else {
|
||||
WaitForShutdown();
|
||||
}
|
||||
Shutdown();
|
||||
Shutdown(interfaces);
|
||||
|
||||
return fRet;
|
||||
}
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
#ifdef WIN32
|
||||
util::WinCmdLineArgs winArgs;
|
||||
std::tie(argc, argv) = winArgs.get();
|
||||
#endif
|
||||
SetupEnvironment();
|
||||
|
||||
// Connect bitcoind signal handlers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue