From 1d2e7007fbc1255e5f79c10032893afe3ba6e169 Mon Sep 17 00:00:00 2001 From: Duke Date: Sat, 4 Mar 2023 14:13:23 -0500 Subject: [PATCH] Fix compiler errors and warnings --- src/main.cpp | 1 + src/mainwindow.cpp | 1 + src/rpc.cpp | 5 +++-- src/settings.cpp | 1 + 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 45e3323..a8ae650 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -6,6 +6,7 @@ #include "rpc.h" #include "settings.h" #include "version.h" +#include bool isdragonx = 0; diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 04f6c99..56e109d 100755 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -22,6 +22,7 @@ #include "connection.h" #include "requestdialog.h" #include +#include #include "sd.h" extern bool isdragonx; diff --git a/src/rpc.cpp b/src/rpc.cpp index 84bed9d..58530a2 100644 --- a/src/rpc.cpp +++ b/src/rpc.cpp @@ -6,6 +6,7 @@ #include "settings.h" #include "senttxstore.h" #include "version.h" +#include #include "sd.h" extern bool isdragonx; @@ -757,9 +758,9 @@ void RPC::getInfoThenRefresh(bool force) { int version = reply["version"].toInt(); int p2pport = reply["p2pport"].toInt(); int rpcport = reply["rpcport"].toInt(); - int notarized = reply["notarized"].toInt(); int protocolversion = reply["protocolversion"].toInt(); - int lag = curBlock - notarized; + // int notarized = reply["notarized"].toInt(); + // int lag = curBlock - notarized; // TODO: store all future halvings int blocks_until_halving= 2020000 - curBlock; char halving_days[8]; diff --git a/src/settings.cpp b/src/settings.cpp index 3d8dd11..f10d16a 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -3,6 +3,7 @@ #include "mainwindow.h" #include "settings.h" #include "sd.h" +#include extern bool isdragonx;