Skip to content

Commit

Permalink
Revert "wallet: Get only P2PKH addresses for now"
Browse files Browse the repository at this point in the history
This reverts commit f126b58.
  • Loading branch information
lateminer committed Nov 4, 2023
1 parent ad6eccb commit 3e15953
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions src/outputtype.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,13 @@ std::vector<CTxDestination> GetAllDestinationsForKey(const CPubKey& key)
{
PKHash keyid(key);
CTxDestination p2pkh{keyid};
/*
if (key.IsCompressed()) {
CTxDestination segwit = WitnessV0KeyHash(keyid);
CTxDestination p2sh = ScriptHash(GetScriptForDestination(segwit));
return Vector(std::move(p2pkh), std::move(p2sh), std::move(segwit));
} else {
return Vector(std::move(p2pkh));
}
*/

// Blackcoin: only P2PKH is supported for now
return Vector(std::move(p2pkh));
}

CTxDestination AddAndGetDestinationForScript(FillableSigningProvider& keystore, const CScript& script, OutputType type)
Expand Down
5 changes: 0 additions & 5 deletions src/test/fuzz/key.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,7 @@ FUZZ_TARGET_INIT(key, initialize_key)
assert(pubkey.IsValid());
assert(pubkey.IsFullyValid());
assert(HexToPubKey(HexStr(pubkey)) == pubkey);
/*
assert(GetAllDestinationsForKey(pubkey).size() == 3);
*/

// Blackcoin: only P2PKH is supported for now
assert(GetAllDestinationsForKey(pubkey).size() == 1);
}

{
Expand Down

0 comments on commit 3e15953

Please sign in to comment.