mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-04 10:12:28 +02:00
Merge bitcoin/bitcoin#32511: refactor: bdb removals
fafee85358remove unused GetDestinationForKey (MarcoFalke)fac72fef27remove unused GetAllDestinationsForKey (MarcoFalke)fa91d57de3remove unused AddrToPubKey (MarcoFalke)faecf158d9remove unused Import* function signatures (MarcoFalke) Pull request description: remove dead code ACKs for top commit: davidgumberg: crACKfafee85358achow101: ACKfafee85358rkrux: crACKfafee85358Tree-SHA512: e48d4bf5f50b97dbd11260efdaf88277bd6a2478665b84353637d63e783003e90d29718836ffdc2e251ac9b77b22e616a0983a59d1b6658b3645a5575b871eae
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2020-2022 The Bitcoin Core developers
|
||||
// Copyright (c) 2020-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.
|
||||
|
||||
@@ -104,7 +104,6 @@ FUZZ_TARGET(key, .init = initialize_key)
|
||||
assert(pubkey.IsValid());
|
||||
assert(pubkey.IsFullyValid());
|
||||
assert(HexToPubKey(HexStr(pubkey)) == pubkey);
|
||||
assert(GetAllDestinationsForKey(pubkey).size() == 3);
|
||||
}
|
||||
|
||||
{
|
||||
@@ -175,7 +174,7 @@ FUZZ_TARGET(key, .init = initialize_key)
|
||||
assert(v_solutions_ret_tx_multisig[2].size() == 1);
|
||||
|
||||
OutputType output_type{};
|
||||
const CTxDestination tx_destination = GetDestinationForKey(pubkey, output_type);
|
||||
const CTxDestination tx_destination{PKHash{pubkey}};
|
||||
assert(output_type == OutputType::LEGACY);
|
||||
assert(IsValidDestination(tx_destination));
|
||||
assert(PKHash{pubkey} == *std::get_if<PKHash>(&tx_destination));
|
||||
@@ -186,9 +185,6 @@ FUZZ_TARGET(key, .init = initialize_key)
|
||||
const std::string destination_address = EncodeDestination(tx_destination);
|
||||
assert(DecodeDestination(destination_address) == tx_destination);
|
||||
|
||||
const CPubKey pubkey_from_address_string = AddrToPubKey(fillable_signing_provider, destination_address);
|
||||
assert(pubkey_from_address_string == pubkey);
|
||||
|
||||
CKeyID key_id = pubkey.GetID();
|
||||
assert(!key_id.IsNull());
|
||||
assert(key_id == CKeyID{key_id});
|
||||
|
||||
Reference in New Issue
Block a user