Cleanup some methods to make them easier to read

This commit is contained in:
adityapk
2018-10-17 22:40:47 -07:00
parent cd6133d1ff
commit 995b6bc96d
3 changed files with 107 additions and 98 deletions

View File

@@ -243,10 +243,6 @@ void RPC::handleConnectionError(const QString& error) {
% "\n\nA zcash.conf was found at\n" % confLocation
% "\nbut we can't connect to zcashd. Is rpcuser=<user> and rpcpassword=<pass> set in the zcash.conf file?";
}
} else if (error.contains("bad request", Qt::CaseInsensitive)) {
explanation = QString()
% "\n\nThis is most likely an internal error. Are you using zcashd v2.0 or higher? You might "
% "need to file a bug report here: https://github.com/adityapk00/zcash-qt-wallet/issues";
} else if (error.contains("internal server error", Qt::CaseInsensitive) ||
error.contains("rewinding", Qt::CaseInsensitive) ||
error.contains("loading", Qt::CaseInsensitive)) {