aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.cpp
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-12-16 12:02:27 +0100
committerMarcoFalke <falke.marco@gmail.com>2020-12-19 09:45:58 +0100
commitfa7e803f3e4df33117927aef6fef9bfaee4f410d (patch)
tree57ebb7c6c8bb816c70384457db158ecb494ef2ce /src/wallet/wallet.cpp
parentfadd4029dced574778ade228931a7706f92bc676 (diff)
downloadbitcoin-fa7e803f3e4df33117927aef6fef9bfaee4f410d.tar.xz
Remove unused MakeOptional
The only use was to work around a compiler warning in an ancient compiler, which we no longer support.
Diffstat (limited to 'src/wallet/wallet.cpp')
-rw-r--r--src/wallet/wallet.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp
index 740e671595..e8a67ede2b 100644
--- a/src/wallet/wallet.cpp
+++ b/src/wallet/wallet.cpp
@@ -4055,8 +4055,7 @@ std::shared_ptr<CWallet> CWallet::Create(interfaces::Chain& chain, const std::st
// No need to read and scan block if block was created before
// our wallet birthday (as adjusted for block time variability)
- // The way the 'time_first_key' is initialized is just a workaround for the gcc bug #47679 since version 4.6.0.
- Optional<int64_t> time_first_key = MakeOptional(false, int64_t());;
+ Optional<int64_t> time_first_key;
for (auto spk_man : walletInstance->GetAllScriptPubKeyMans()) {
int64_t time = spk_man->GetTimeFirstKey();
if (!time_first_key || time < *time_first_key) time_first_key = time;