MCPcopy Create free account
hub / github.com/LUX-Core/lux / updateAlert

Method updateAlert

src/qt/clientmodel.cpp:201–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201void ClientModel::updateAlert(const QString &hash, int status)
202{
203 // Show error message notification for new alert
204 if (status == CT_NEW) {
205 uint256 hash_256;
206 hash_256.SetHex(hash.toStdString());
207 CAlert alert = CAlert::getAlertByHash(hash_256);
208 if (!alert.IsNull()) {
209 Q_EMIT message(tr("Network Alert"), QString::fromStdString(alert.strStatusBar), CClientUIInterface::ICON_ERROR);
210 }
211 }
212
213 Q_EMIT alertsChanged(getStatusBarWarnings());
214}
215
216void ClientModel::getGasInfo(uint64_t& blockGasLimit, uint64_t& minGasPrice, uint64_t& nGasPrice) const
217{

Callers

nothing calls this directly

Calls 2

SetHexMethod · 0.45
IsNullMethod · 0.45

Tested by

no test coverage detected