From bc03f570717b82a67c562977117e8b688916b7f8 Mon Sep 17 00:00:00 2001 From: BlackcoinDev Date: Sun, 22 Sep 2024 09:49:54 +0200 Subject: [PATCH] transaction: show pubkey encoded address --- src/core_write.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core_write.cpp b/src/core_write.cpp index bccfb960d8..e5d347130c 100644 --- a/src/core_write.cpp +++ b/src/core_write.cpp @@ -165,8 +165,8 @@ void ScriptToUniv(const CScript& script, UniValue& out, bool include_hex, bool i std::vector> 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));