| 199 | } |
| 200 | |
| 201 | void 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 | |
| 216 | void ClientModel::getGasInfo(uint64_t& blockGasLimit, uint64_t& minGasPrice, uint64_t& nGasPrice) const |
| 217 | { |