diff --git a/src/bench/wallet_migration.cpp b/src/bench/wallet_migration.cpp index b5e512f369..49591f5fc2 100644 --- a/src/bench/wallet_migration.cpp +++ b/src/bench/wallet_migration.cpp @@ -37,7 +37,7 @@ static void WalletMigration(benchmark::Bench& bench) for (int w = 0; w < NUM_WATCH_ONLY_ADDR; ++w) { CKey key = GenerateRandomKey(); LOCK(wallet->cs_wallet); - const auto& dest = GetDestinationForKey(key.GetPubKey(), OutputType::LEGACY); + const PKHash dest{key.GetPubKey()}; const CScript& script = scripts_watch_only.emplace_back(GetScriptForDestination(dest)); assert(legacy_spkm->LoadWatchOnly(script)); assert(wallet->SetAddressBook(dest, strprintf("watch_%d", w), /*purpose=*/std::nullopt)); diff --git a/src/outputtype.cpp b/src/outputtype.cpp index 8c2b76494b..b4acc56c26 100644 --- a/src/outputtype.cpp +++ b/src/outputtype.cpp @@ -1,5 +1,5 @@ // Copyright (c) 2009-2010 Satoshi Nakamoto -// Copyright (c) 2009-2022 The Bitcoin Core developers +// Copyright (c) 2009-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. @@ -9,9 +9,8 @@ #include