From 63136de1736822a6f00686e78eb49bd44555f80b Mon Sep 17 00:00:00 2001 From: gruve-p Date: Thu, 31 Oct 2024 21:27:51 +0100 Subject: [PATCH] Fixes after merging upstream --- src/chainparams.cpp | 2 +- src/groestlcoin-wallet-res.rc | 6 ++--- src/qt/CMakeLists.txt | 2 +- src/qt/res/groestlcoin-qt-res.rc | 41 ++++++++++++++++++++++++++++++++ 4 files changed, 46 insertions(+), 5 deletions(-) create mode 100644 src/qt/res/groestlcoin-qt-res.rc diff --git a/src/chainparams.cpp b/src/chainparams.cpp index 36145484c0402..c05bb5f0efc30 100644 --- a/src/chainparams.cpp +++ b/src/chainparams.cpp @@ -46,7 +46,7 @@ void ReadSigNetArgs(const ArgsManager& args, CChainParams::SigNetOptions& option void ReadRegTestArgs(const ArgsManager& args, CChainParams::RegTestOptions& options) { if (auto value = args.GetBoolArg("-fastprune")) options.fastprune = *value; - if (HasTestOption(args, "bip94")) options.enforce_bip94 = true; + if (HasTestOption(args, "bip94")) options.enforce_bip94 = false; // GRS for (const std::string& arg : args.GetArgs("-testactivationheight")) { const auto found{arg.find('@')}; diff --git a/src/groestlcoin-wallet-res.rc b/src/groestlcoin-wallet-res.rc index f2682da1abdaf..f8ef7d2940385 100644 --- a/src/groestlcoin-wallet-res.rc +++ b/src/groestlcoin-wallet-res.rc @@ -15,14 +15,14 @@ BEGIN BLOCK "040904E4" // U.S. English - multilingual (hex) BEGIN VALUE "CompanyName", "Groestlcoin" - VALUE "FileDescription", "groestlcoin-wallet (CLI tool for " PACKAGE_NAME " wallets)" - VALUE "FileVersion", PACKAGE_VERSION + VALUE "FileDescription", "groestlcoin-wallet (CLI tool for " CLIENT_NAME " wallets)" + VALUE "FileVersion", CLIENT_VERSION_STRING VALUE "InternalName", "groestlcoin-wallet" VALUE "LegalCopyright", COPYRIGHT_STR VALUE "LegalTrademarks1", "Distributed under the MIT software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php." VALUE "OriginalFilename", "groestlcoin-wallet.exe" VALUE "ProductName", "groestlcoin-wallet" - VALUE "ProductVersion", PACKAGE_VERSION + VALUE "ProductVersion", CLIENT_VERSION_STRING END END diff --git a/src/qt/CMakeLists.txt b/src/qt/CMakeLists.txt index 64e12afb6de48..c844f5a9276ff 100644 --- a/src/qt/CMakeLists.txt +++ b/src/qt/CMakeLists.txt @@ -226,7 +226,7 @@ add_executable(groestlcoin-qt ../init/groestlcoin-qt.cpp ) -add_windows_resources(groestlcoin-qt res/bitcoin-qt-res.rc) +add_windows_resources(groestlcoin-qt res/groestlcoin-qt-res.rc) target_link_libraries(groestlcoin-qt core_interface diff --git a/src/qt/res/groestlcoin-qt-res.rc b/src/qt/res/groestlcoin-qt-res.rc new file mode 100644 index 0000000000000..6cdd686cde3ec --- /dev/null +++ b/src/qt/res/groestlcoin-qt-res.rc @@ -0,0 +1,41 @@ +IDI_ICON1 ICON DISCARDABLE "icons/groestlcoin.ico" +IDI_ICON2 ICON DISCARDABLE "icons/groestlcoin_testnet.ico" +IDI_ICON3 ICON DISCARDABLE "icons/groestlcoin_signet.ico" +IDI_ICON4 ICON DISCARDABLE "icons/groestlcoin_testnet.ico" // testnet4 + +#include // needed for VERSIONINFO +#include "../../clientversion.h" // holds the needed client version information +#define PACKAGE_NAME "Groestlcoin Core" + +#define VER_PRODUCTVERSION CLIENT_VERSION_MAJOR,CLIENT_VERSION_MINOR,CLIENT_VERSION_BUILD +#define VER_PRODUCTVERSION_STR STRINGIZE(CLIENT_VERSION_MAJOR) "." STRINGIZE(CLIENT_VERSION_MINOR) "." STRINGIZE(CLIENT_VERSION_BUILD) +#define VER_FILEVERSION VER_PRODUCTVERSION +#define VER_FILEVERSION_STR VER_PRODUCTVERSION_STR + +VS_VERSION_INFO VERSIONINFO +FILEVERSION VER_FILEVERSION +PRODUCTVERSION VER_PRODUCTVERSION +FILEOS VOS_NT_WINDOWS32 +FILETYPE VFT_APP +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904E4" // U.S. English - multilingual (hex) + BEGIN + VALUE "CompanyName", "Groestlcoin" + VALUE "FileDescription", CLIENT_NAME " (GUI node for Groestlcoin)" + VALUE "FileVersion", VER_FILEVERSION_STR + VALUE "InternalName", "groestlcoin-qt" + VALUE "LegalCopyright", COPYRIGHT_STR + VALUE "LegalTrademarks1", "Distributed under the MIT software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php." + VALUE "OriginalFilename", "groestlcoin-qt.exe" + VALUE "ProductName", CLIENT_NAME + VALUE "ProductVersion", VER_PRODUCTVERSION_STR + END + END + + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x0, 1252 // language neutral - multilingual (decimal) + END +END