From e8947c7765c4c3e276d6962378d96b76aea2036c Mon Sep 17 00:00:00 2001 From: lateminer <9951982+lateminer@users.noreply.github.com> Date: Sun, 22 Sep 2024 23:08:38 +0200 Subject: [PATCH] trivial: Expand the code comment regarding pubkey destination --- src/core_write.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core_write.cpp b/src/core_write.cpp index e5d347130c..bf9e37d00e 100644 --- a/src/core_write.cpp +++ b/src/core_write.cpp @@ -165,7 +165,8 @@ void ScriptToUniv(const CScript& script, UniValue& out, bool include_hex, bool i std::vector> solns; const TxoutType type{Solver(script, solns)}; - //Blackcoin need to see the encoded pubkey address + // Blackcoin: We need to see the encoded pubkey address. + // This is essentially a reversal of Bitcoin PR #16725 if (include_address && ExtractDestination(script, address)) /*&& type != TxoutType::PUBKEY)*/ { out.pushKV("address", EncodeDestination(address)); }