Skip to content

Commit

Permalink
rpc: show pubkey encoded address
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackcoinDev committed Sep 22, 2024
1 parent df97be8 commit 459d4e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core_write.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ void ScriptToUniv(const CScript& script, UniValue& out, bool include_hex, bool i

std::vector<std::vector<unsigned char>> solns;
const TxoutType type{Solver(script, solns)};

if (include_address && ExtractDestination(script, address) && type != TxoutType::PUBKEY) {
//Blackcoin need to see the encoded pubkey address
if (include_address && ExtractDestination(script, address)) /*&& type != TxoutType::PUBKEY)*/ {
out.pushKV("address", EncodeDestination(address));
}
out.pushKV("type", GetTxnOutputType(type));
Expand Down

0 comments on commit 459d4e1

Please sign in to comment.