diff options
| author | MarcoFalke <[email protected]> | 2019-07-23 18:40:40 -0400 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2019-07-23 18:40:46 -0400 |
| commit | 67923d6b3c1e4413570ef34a53a5b1b441814bc6 (patch) | |
| tree | fbaaa07de25b79539cb73b7e516dec5c4a983a48 /src/interfaces/node.cpp | |
| parent | Merge #16408: depends: Prune X packages (diff) | |
| parent | Call node->initError instead of InitError from GUI code (diff) | |
| download | discoin-67923d6b3c1e4413570ef34a53a5b1b441814bc6.tar.xz discoin-67923d6b3c1e4413570ef34a53a5b1b441814bc6.zip | |
Merge #16366: init: Use InitError for all errors in bitcoind/qt
fa6f402bde146f92ed131e0c9c8e15a55e723307 Call node->initError instead of InitError from GUI code (Russell Yanofsky)
fad2502240a1c440ef03ac3f880475702e418275 init: Use InitError for all errors in bitcoind/qt (MarcoFalke)
Pull request description:
Using the same InitError for startup error in the daemon and the gui makes it possible to run the tests with the gui again:
```sh
BITCOIND=bitcoin-qt ./test/functional/test_runner.py feature_includeconf feature_config_args
ACKs for top commit:
hebasto:
ACK fa6f402bde146f92ed131e0c9c8e15a55e723307
ryanofsky:
utACK fa6f402bde146f92ed131e0c9c8e15a55e723307. Only changes since last review are removing more includes and adding Node::initError method to avoid accessing node `InitError` function and global variables from GUI code.
Tree-SHA512: bd19e08dcea4019dfe40356bc5c63cb583cefed54b6c9dcfb82f1b5b00308d8e2b363549afcaea5e93bf83864dbe0917400c3b70f43a8a5bdff45c9cd34cc294
Diffstat (limited to 'src/interfaces/node.cpp')
| -rw-r--r-- | src/interfaces/node.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/interfaces/node.cpp b/src/interfaces/node.cpp index 584d218db..fd2fb6531 100644 --- a/src/interfaces/node.cpp +++ b/src/interfaces/node.cpp @@ -54,6 +54,7 @@ class NodeImpl : public Node { public: NodeImpl() { m_interfaces.chain = MakeChain(); } + void initError(const std::string& message) override { InitError(message); } bool parseParameters(int argc, const char* const argv[], std::string& error) override { return gArgs.ParseParameters(argc, argv, error); |