From 881cccb7800dadcfda77b0872e00c2b669a8343a Mon Sep 17 00:00:00 2001 From: Jeremiah Buddenhagen Date: Mon, 5 Feb 2018 16:42:16 -0800 Subject: [PATCH] Always include tx comment in decoded responses --- src/core_write.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core_write.cpp b/src/core_write.cpp index 72211f06b..2e6bb54bf 100644 --- a/src/core_write.cpp +++ b/src/core_write.cpp @@ -204,9 +204,7 @@ void TxToUniv(const CTransaction& tx, const uint256& hashBlock, UniValue& entry, } entry.pushKV("vout", vout); - if (tx.nVersion >= 2) { - entry.pushKV("tx-comment", tx.strTxComment); - } + entry.pushKV("tx-comment", tx.strTxComment); if (!hashBlock.IsNull()) entry.pushKV("blockhash", hashBlock.GetHex());