From 63d08919d1fcc09376f7328ba01ddd01648d52c2 Mon Sep 17 00:00:00 2001 From: Daira Emma Hopwood Date: Sat, 8 Apr 2023 18:34:51 +0100 Subject: [PATCH] Warn on node startup if the removed `-blockprioritysize` option is set to a non-zero value. Signed-off-by: Daira Emma Hopwood --- doc/release-notes.md | 3 ++- src/init.cpp | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/release-notes.md b/doc/release-notes.md index 3562ae590..d44a87f81 100644 --- a/doc/release-notes.md +++ b/doc/release-notes.md @@ -45,7 +45,8 @@ Changes to Block Template Construction - The block template construction algorithm no longer favours transactions that were previously considered "high priority" because they spent older inputs. The `-blockprioritysize` config option, which configured the portion of the block - reserved for these transactions, has been removed and is now ignored. + reserved for these transactions, has been removed and will now cause a warning + if used. Removal of Priority Estimation ------------------------------ diff --git a/src/init.cpp b/src/init.cpp index 70634bbd4..c218922c0 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1295,6 +1295,10 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler) } #endif + if (GetArg("-blockprioritysize", 0) != 0) { + InitWarning(_("The argument -blockprioritysize is no longer supported.")); + } + if (!mapMultiArgs["-nuparams"].empty()) { // Allow overriding network upgrade parameters for testing if (chainparams.NetworkIDString() != "regtest") {