mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-27 13:23:29 +01:00
daemon: report transaction relay status in print_pool* commands
This commit is contained in:
parent
1e163666f3
commit
10a79eae24
@ -425,6 +425,8 @@ namespace cryptonote
|
|||||||
txi.last_failed_height = txd.last_failed_height;
|
txi.last_failed_height = txd.last_failed_height;
|
||||||
txi.last_failed_id_hash = epee::string_tools::pod_to_hex(txd.last_failed_id);
|
txi.last_failed_id_hash = epee::string_tools::pod_to_hex(txd.last_failed_id);
|
||||||
txi.receive_time = txd.receive_time;
|
txi.receive_time = txd.receive_time;
|
||||||
|
txi.relayed = txd.relayed;
|
||||||
|
txi.last_relayed_time = txd.last_relayed_time;
|
||||||
tx_infos.push_back(txi);
|
tx_infos.push_back(txi);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -734,6 +734,7 @@ bool t_rpc_command_executor::print_transaction_pool_long() {
|
|||||||
<< "blob_size: " << tx_info.blob_size << std::endl
|
<< "blob_size: " << tx_info.blob_size << std::endl
|
||||||
<< "fee: " << cryptonote::print_money(tx_info.fee) << std::endl
|
<< "fee: " << cryptonote::print_money(tx_info.fee) << std::endl
|
||||||
<< "receive_time: " << tx_info.receive_time << " (" << get_human_time_ago(tx_info.receive_time, now) << ")" << std::endl
|
<< "receive_time: " << tx_info.receive_time << " (" << get_human_time_ago(tx_info.receive_time, now) << ")" << std::endl
|
||||||
|
<< "relayed: " << [&](const cryptonote::tx_info &tx_info)->std::string { if (!tx_info.relayed) return "no"; return boost::lexical_cast<std::string>(tx_info.last_relayed_time) + " (" + get_human_time_ago(tx_info.last_relayed_time, now) + ")"; } (tx_info) << std::endl
|
||||||
<< "kept_by_block: " << (tx_info.kept_by_block ? 'T' : 'F') << std::endl
|
<< "kept_by_block: " << (tx_info.kept_by_block ? 'T' : 'F') << std::endl
|
||||||
<< "max_used_block_height: " << tx_info.max_used_block_height << std::endl
|
<< "max_used_block_height: " << tx_info.max_used_block_height << std::endl
|
||||||
<< "max_used_block_id: " << tx_info.max_used_block_id_hash << std::endl
|
<< "max_used_block_id: " << tx_info.max_used_block_id_hash << std::endl
|
||||||
@ -813,6 +814,7 @@ bool t_rpc_command_executor::print_transaction_pool_short() {
|
|||||||
<< "blob_size: " << tx_info.blob_size << std::endl
|
<< "blob_size: " << tx_info.blob_size << std::endl
|
||||||
<< "fee: " << cryptonote::print_money(tx_info.fee) << std::endl
|
<< "fee: " << cryptonote::print_money(tx_info.fee) << std::endl
|
||||||
<< "receive_time: " << tx_info.receive_time << " (" << get_human_time_ago(tx_info.receive_time, now) << ")" << std::endl
|
<< "receive_time: " << tx_info.receive_time << " (" << get_human_time_ago(tx_info.receive_time, now) << ")" << std::endl
|
||||||
|
<< "relayed: " << [&](const cryptonote::tx_info &tx_info)->std::string { if (!tx_info.relayed) return "no"; return boost::lexical_cast<std::string>(tx_info.last_relayed_time) + " (" + get_human_time_ago(tx_info.last_relayed_time, now) + ")"; } (tx_info) << std::endl
|
||||||
<< "kept_by_block: " << (tx_info.kept_by_block ? 'T' : 'F') << std::endl
|
<< "kept_by_block: " << (tx_info.kept_by_block ? 'T' : 'F') << std::endl
|
||||||
<< "max_used_block_height: " << tx_info.max_used_block_height << std::endl
|
<< "max_used_block_height: " << tx_info.max_used_block_height << std::endl
|
||||||
<< "max_used_block_id: " << tx_info.max_used_block_id_hash << std::endl
|
<< "max_used_block_id: " << tx_info.max_used_block_id_hash << std::endl
|
||||||
|
@ -855,6 +855,8 @@ namespace cryptonote
|
|||||||
uint64_t last_failed_height;
|
uint64_t last_failed_height;
|
||||||
std::string last_failed_id_hash;
|
std::string last_failed_id_hash;
|
||||||
uint64_t receive_time;
|
uint64_t receive_time;
|
||||||
|
bool relayed;
|
||||||
|
uint64_t last_relayed_time;
|
||||||
|
|
||||||
BEGIN_KV_SERIALIZE_MAP()
|
BEGIN_KV_SERIALIZE_MAP()
|
||||||
KV_SERIALIZE(id_hash)
|
KV_SERIALIZE(id_hash)
|
||||||
@ -867,6 +869,8 @@ namespace cryptonote
|
|||||||
KV_SERIALIZE(last_failed_height)
|
KV_SERIALIZE(last_failed_height)
|
||||||
KV_SERIALIZE(last_failed_id_hash)
|
KV_SERIALIZE(last_failed_id_hash)
|
||||||
KV_SERIALIZE(receive_time)
|
KV_SERIALIZE(receive_time)
|
||||||
|
KV_SERIALIZE(relayed)
|
||||||
|
KV_SERIALIZE(last_failed_id_hash)
|
||||||
END_KV_SERIALIZE_MAP()
|
END_KV_SERIALIZE_MAP()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user