<!-- This issue tracker is only for technical issues related to Bitcoin Core. General bitcoin questions and/or support requests are best directed to the Bitcoin StackExchange at https://bitcoin.stackexchange.com. For reporting security issues, please read instructions at https://bitcoincore.org/en/contact/. If the node is "stuck" during sync or giving "block checksum mismatch" errors, please ensure your hardware is stable by running memtest and observe CPU temperature with a load-test tool such as linpack before creating an issue! -->
<!-- Describe the issue -->
I made a transaction from my wallet with coin control to another address inside my wallet (in testnet) and then checked over the rpc interface the transactions.
$bitcoin = new Bitcoin($bitcoin_user, $bitcoin_pass, "localhost", $bitcoin_port);
foreach($bitcoin->listtransactions("*", 1000) as $transaction) {
if ($bitcoin->error != NULL) {
break;
}
if ($transaction["txid"] == "b33fe21560b9a8fce98b3d85130caced3fd4c828d47b43561e67b1edfc0a6656") {
foreach($transaction as $name => $value) {
if (is_array($value)) {
echo "$name => ";
var_dump($value);
echo "<br>";
} else {
echo "$name => $value<br>";
}
}
echo "<hr>";
}
}
<!--- What behavior did you expect? -->
Actual behavior Screenshot of script output: <img src="https://i.imgur.com/DnT4qGh.png"> The address with "category send" should be tb1q7yfsfx4yaqlcxkwz6rdczvgzzful6ftkxghu0m and not tb1qkmm5pw063y3a5f5za3qht27wx2zuvp9zmws7fv. You can see it here correctly: https://live.blockcypher.com/btc-testnet/tx/b33fe21560b9a8fce98b3d85130caced3fd4c828d47b43561e67b1edfc0a6656/
<!--- What was the actual behavior (provide screenshots if the issue is GUI-related)? -->
To reproduce
<!--- How reliably can you reproduce the issue, what are the steps to do so? -->
System information
<!-- What version of Bitcoin Core are you using, where did you get it (website, self-compiled, etc)? -->
<!-- What type of machine are you observing the error on (OS/CPU and disk type)? -->
<!-- GUI-related issue? What is your operating system and its version? If Linux, what is your desktop environment and graphical shell? -->
Bitcoin Core Version v0.19.0.1 (64-Bit) Window 10