Page MenuHomePhabricator

D9576.id28591.diff
No OneTemporary

D9576.id28591.diff

diff --git a/src/bench/wallet_balance.cpp b/src/bench/wallet_balance.cpp
--- a/src/bench/wallet_balance.cpp
+++ b/src/bench/wallet_balance.cpp
@@ -6,11 +6,14 @@
#include <config.h>
#include <interfaces/chain.h>
#include <node/context.h>
+#include <validationinterface.h>
+#include <wallet/wallet.h>
+
#include <test/util/mining.h>
#include <test/util/setup_common.h>
#include <test/util/wallet.h>
-#include <validationinterface.h>
-#include <wallet/wallet.h>
+
+#include <optional>
static void WalletBalance(benchmark::Bench &bench, const bool set_dirty,
const bool add_watchonly, const bool add_mine) {
diff --git a/src/miner.h b/src/miner.h
--- a/src/miner.h
+++ b/src/miner.h
@@ -14,6 +14,7 @@
#include <cstdint>
#include <memory>
+#include <optional>
class CBlockIndex;
class CChainParams;
diff --git a/src/node/psbt.h b/src/node/psbt.h
--- a/src/node/psbt.h
+++ b/src/node/psbt.h
@@ -7,6 +7,8 @@
#include <psbt.h>
+#include <optional>
+
/**
* Holds an analysis of one input from a PSBT
*/
diff --git a/src/psbt.h b/src/psbt.h
--- a/src/psbt.h
+++ b/src/psbt.h
@@ -12,6 +12,8 @@
#include <script/sign.h>
#include <script/signingprovider.h>
+#include <optional>
+
// Magic bytes
static constexpr uint8_t PSBT_MAGIC_BYTES[5] = {'p', 's', 'b', 't', 0xff};
diff --git a/src/script/descriptor.h b/src/script/descriptor.h
--- a/src/script/descriptor.h
+++ b/src/script/descriptor.h
@@ -10,6 +10,7 @@
#include <script/sign.h>
#include <script/signingprovider.h>
+#include <optional>
#include <vector>
using ExtPubKeyMap = std::unordered_map<uint32_t, CExtPubKey>;
diff --git a/src/test/fuzz/FuzzedDataProvider.h b/src/test/fuzz/FuzzedDataProvider.h
--- a/src/test/fuzz/FuzzedDataProvider.h
+++ b/src/test/fuzz/FuzzedDataProvider.h
@@ -19,6 +19,7 @@
#include <cstdint>
#include <cstring>
#include <initializer_list>
+#include <limits>
#include <string>
#include <type_traits>
#include <utility>
diff --git a/src/test/fuzz/util.h b/src/test/fuzz/util.h
--- a/src/test/fuzz/util.h
+++ b/src/test/fuzz/util.h
@@ -25,6 +25,7 @@
#include <algorithm>
#include <cstdint>
#include <cstdio>
+#include <optional>
#include <string>
#include <vector>
diff --git a/src/test/util_tests.cpp b/src/test/util_tests.cpp
--- a/src/test/util_tests.cpp
+++ b/src/test/util_tests.cpp
@@ -28,6 +28,7 @@
#include <array>
#include <cstdint>
+#include <optional>
#include <utility>
#ifndef WIN32
#include <csignal>
diff --git a/src/txmempool.h b/src/txmempool.h
--- a/src/txmempool.h
+++ b/src/txmempool.h
@@ -21,6 +21,7 @@
#include <atomic>
#include <map>
+#include <optional>
#include <set>
#include <string>
#include <utility>
diff --git a/src/util/system.h b/src/util/system.h
--- a/src/util/system.h
+++ b/src/util/system.h
@@ -30,6 +30,7 @@
#include <cstdint>
#include <exception>
#include <map>
+#include <optional>
#include <set>
#include <string>
#include <utility>
diff --git a/src/wallet/coincontrol.h b/src/wallet/coincontrol.h
--- a/src/wallet/coincontrol.h
+++ b/src/wallet/coincontrol.h
@@ -9,6 +9,8 @@
#include <primitives/transaction.h>
#include <script/standard.h>
+#include <optional>
+
const int DEFAULT_MIN_DEPTH = 0;
const int DEFAULT_MAX_DEPTH = 9999999;
diff --git a/src/wallet/coinselection.cpp b/src/wallet/coinselection.cpp
--- a/src/wallet/coinselection.cpp
+++ b/src/wallet/coinselection.cpp
@@ -7,6 +7,8 @@
#include <util/moneystr.h>
#include <util/system.h>
+#include <optional>
+
// Descending order comparator
struct {
bool operator()(const OutputGroup &a, const OutputGroup &b) const {
diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp
--- a/src/wallet/rpcwallet.cpp
+++ b/src/wallet/rpcwallet.cpp
@@ -40,6 +40,8 @@
#include <event2/http.h>
+#include <optional>
+
using interfaces::FoundBlock;
static const std::string WALLET_ENDPOINT_BASE = "/wallet/";
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h
--- a/src/wallet/wallet.h
+++ b/src/wallet/wallet.h
@@ -33,6 +33,7 @@
#include <cstdint>
#include <map>
#include <memory>
+#include <optional>
#include <set>
#include <stdexcept>
#include <string>

File Metadata

Mime Type
text/plain
Expires
Sat, Apr 26, 11:15 (12 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5570654
Default Alt Text
D9576.id28591.diff (4 KB)

Event Timeline