Skip to content

Commit ff54314

Browse files
committed
wallet: clarify replaced_by_txid and replaces_txid in help output
1 parent e69796c commit ff54314

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wallet/rpc/transactions.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,8 @@ static std::vector<RPCResult> TransactionDescriptionString()
415415
{
416416
{RPCResult::Type::STR_HEX, "txid", "The transaction id."},
417417
}},
418-
{RPCResult::Type::STR_HEX, "replaced_by_txid", /*optional=*/true, "The txid if this tx was replaced."},
419-
{RPCResult::Type::STR_HEX, "replaces_txid", /*optional=*/true, "The txid if the tx replaces one."},
418+
{RPCResult::Type::STR_HEX, "replaced_by_txid", /*optional=*/true, "Only if 'category' is 'send'. The txid if this tx was replaced."},
419+
{RPCResult::Type::STR_HEX, "replaces_txid", /*optional=*/true, "Only if 'category' is 'send'. The txid if this tx replaces another."},
420420
{RPCResult::Type::STR, "to", /*optional=*/true, "If a comment to is associated with the transaction."},
421421
{RPCResult::Type::NUM_TIME, "time", "The transaction time expressed in " + UNIX_EPOCH_TIME + "."},
422422
{RPCResult::Type::NUM_TIME, "timereceived", "The time received expressed in " + UNIX_EPOCH_TIME + "."},

0 commit comments

Comments
 (0)