mirror of
https://github.com/wownero/wownero.git
synced 2026-10-17 15:41:44 +02:00
txpool: fix time_in_pool age calculation
This commit is contained in:
@@ -1071,7 +1071,8 @@ namespace cryptonote
|
||||
const relay_category category = include_sensitive ? relay_category::all : relay_category::broadcasted;
|
||||
backlog.reserve(m_blockchain.get_txpool_tx_count(include_sensitive));
|
||||
m_blockchain.for_all_txpool_txes([&backlog, now](const crypto::hash &txid, const txpool_tx_meta_t &meta, const cryptonote::blobdata_ref *bd){
|
||||
backlog.push_back({meta.weight, meta.fee, meta.receive_time - now});
|
||||
const uint64_t age = now >= meta.receive_time ? now - meta.receive_time : 0;
|
||||
backlog.push_back({meta.weight, meta.fee, age});
|
||||
return true;
|
||||
}, false, category);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user