File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ class NodeImpl : public Node
68
68
std::string getNetwork () override { return Params ().NetworkIDString (); }
69
69
void initLogging () override { InitLogging (); }
70
70
void initParameterInteraction () override { InitParameterInteraction (); }
71
- std::string getWarnings (const std::string& type ) override { return GetWarnings (type ); }
71
+ std::string getWarnings () override { return GetWarnings (" gui " ); }
72
72
uint32_t getLogCategories () override { return LogInstance ().GetCategoryMask (); }
73
73
bool baseInitialize () override
74
74
{
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ class Node
78
78
virtual void initParameterInteraction () = 0;
79
79
80
80
// ! Get warnings.
81
- virtual std::string getWarnings (const std::string& type ) = 0;
81
+ virtual std::string getWarnings () = 0;
82
82
83
83
// Get log flags.
84
84
virtual uint32_t getLogCategories () = 0;
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ BitcoinCore::BitcoinCore(interfaces::Node& node) :
135
135
void BitcoinCore::handleRunawayException (const std::exception *e)
136
136
{
137
137
PrintExceptionContinue (e, " Runaway exception" );
138
- Q_EMIT runawayException (QString::fromStdString (m_node.getWarnings (" gui " )));
138
+ Q_EMIT runawayException (QString::fromStdString (m_node.getWarnings ()));
139
139
}
140
140
141
141
void BitcoinCore::initialize ()
@@ -589,10 +589,10 @@ int GuiMain(int argc, char* argv[])
589
589
}
590
590
} catch (const std::exception& e) {
591
591
PrintExceptionContinue (&e, " Runaway exception" );
592
- app.handleRunawayException (QString::fromStdString (node->getWarnings (" gui " )));
592
+ app.handleRunawayException (QString::fromStdString (node->getWarnings ()));
593
593
} catch (...) {
594
594
PrintExceptionContinue (nullptr , " Runaway exception" );
595
- app.handleRunawayException (QString::fromStdString (node->getWarnings (" gui " )));
595
+ app.handleRunawayException (QString::fromStdString (node->getWarnings ()));
596
596
}
597
597
return rv;
598
598
}
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ enum BlockSource ClientModel::getBlockSource() const
134
134
135
135
QString ClientModel::getStatusBarWarnings () const
136
136
{
137
- return QString::fromStdString (m_node.getWarnings (" gui " ));
137
+ return QString::fromStdString (m_node.getWarnings ());
138
138
}
139
139
140
140
OptionsModel *ClientModel::getOptionsModel ()
You can’t perform that action at this time.
0 commit comments