mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-29 18:53:14 +00:00
daemon: fix coinbase txes always being seen as pruned
This commit is contained in:
parent
441ed9f2fe
commit
705edd81d9
1 changed files with 2 additions and 1 deletions
|
@ -960,10 +960,11 @@ 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);
|
||||||
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
|
||||||
tools::success_msg_writer() << "Found in blockchain at height " << res.txs.front().block_height << (res.txs.front().prunable_as_hex.empty() ? " (pruned)" : "");
|
tools::success_msg_writer() << "Found in blockchain at height " << res.txs.front().block_height << (pruned ? " (pruned)" : "");
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::string &as_hex = (1 == res.txs.size()) ? res.txs.front().as_hex : res.txs_as_hex.front();
|
const std::string &as_hex = (1 == res.txs.size()) ? res.txs.front().as_hex : res.txs_as_hex.front();
|
||||||
|
|
Loading…
Reference in a new issue