static const std::array<int, 9> confTargets = { {2, 4, 6, 12, 24, 48, 144, 504, 1008} };
int getConfTargetForIndex(int index) {
if (index+1 > static_cast<int>(confTargets.size())) {
+--- bitcoin-22.0/src/support/lockedpool.cpp.orig 2021-09-08 20:16:07.000000000 +0200
++++ bitcoin-22.0/src/support/lockedpool.cpp 2023-07-04 11:29:13.358676698 +0200
+@@ -26,6 +26,7 @@
+ #include <limits.h> // for PAGESIZE
+ #include <unistd.h> // for sysconf
+ #endif
++#include <stdexcept>
+
+ #include <algorithm>
+
+--- bitcoin-22.0/src/util/bip32.h.orig 2021-09-08 20:16:07.000000000 +0200
++++ bitcoin-22.0/src/util/bip32.h 2023-07-04 11:31:38.309474568 +0200
+@@ -6,6 +6,7 @@
+ #define BITCOIN_UTIL_BIP32_H
+
+ #include <attributes.h>
++#include <cstdint>
+ #include <string>
+ #include <vector>
+