mirror of
https://github.com/monero-project/monero.git
synced 2024-10-01 11:49:47 -04:00
Merge pull request #6703
8baa7bb23
daemon: don't print "(pruned)" for coinbase txes (moneromooo-monero)
This commit is contained in:
commit
43f91ee12e
@ -1003,7 +1003,9 @@ bool t_rpc_command_executor::print_transaction(crypto::hash transaction_hash,
|
|||||||
if (1 == res.txs.size())
|
if (1 == res.txs.size())
|
||||||
{
|
{
|
||||||
// only available for new style answers
|
// only available for new style answers
|
||||||
bool pruned = res.txs.front().prunable_as_hex.empty() && res.txs.front().prunable_hash != epee::string_tools::pod_to_hex(crypto::null_hash);
|
static const std::string empty_hash = epee::string_tools::pod_to_hex(crypto::cn_fast_hash("", 0));
|
||||||
|
// prunable_hash will equal empty_hash when nothing is prunable (mostly when the transaction is coinbase)
|
||||||
|
bool pruned = res.txs.front().prunable_as_hex.empty() && res.txs.front().prunable_hash != epee::string_tools::pod_to_hex(crypto::null_hash) && res.txs.front().prunable_hash != empty_hash;
|
||||||
if (res.txs.front().in_pool)
|
if (res.txs.front().in_pool)
|
||||||
tools::success_msg_writer() << "Found in pool";
|
tools::success_msg_writer() << "Found in pool";
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user