Avoid repeated log messages in tests by connecting to signal handlers (ThreadSafeMessageBox, etc.) only once
This commit is contained in:
parent
e502c3c515
commit
5fd73c8694
1 changed files with 5 additions and 1 deletions
|
@ -45,7 +45,11 @@ BasicTestingSetup::BasicTestingSetup(const std::string& chainName)
|
||||||
// TODO: fix the code to support SegWit blocks.
|
// TODO: fix the code to support SegWit blocks.
|
||||||
gArgs.ForceSetArg("-vbparams", strprintf("segwit:0:%d", (int64_t)Consensus::BIP9Deployment::NO_TIMEOUT));
|
gArgs.ForceSetArg("-vbparams", strprintf("segwit:0:%d", (int64_t)Consensus::BIP9Deployment::NO_TIMEOUT));
|
||||||
SelectParams(chainName);
|
SelectParams(chainName);
|
||||||
|
static bool noui_connected = false;
|
||||||
|
if (!noui_connected) {
|
||||||
noui_connect();
|
noui_connect();
|
||||||
|
noui_connected = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
BasicTestingSetup::~BasicTestingSetup()
|
BasicTestingSetup::~BasicTestingSetup()
|
||||||
|
|
Loading…
Reference in a new issue