Merge pull request #11146

92c8206 rpc: redact txpool age in restricted mode (selsta)
265f7b2 txpool: fix time_in_pool age calculation (selsta)

ACKs: tobtoht, jpk68
This commit is contained in:
tobtoht
2026-08-25 16:39:10 +00:00
2 changed files with 7 additions and 1 deletions
+5
View File
@@ -2863,6 +2863,7 @@ namespace cryptonote
{
RPC_TRACKER(get_txpool_backlog);
const bool restricted = m_restricted && ctx;
if (!m_core.get_txpool_backlog(res.backlog))
{
error_resp.code = CORE_RPC_ERROR_CODE_INTERNAL_ERROR;
@@ -2870,6 +2871,10 @@ namespace cryptonote
return false;
}
if (restricted)
for (tx_backlog_entry& entry : res.backlog)
entry.time_in_pool = 0;
res.status = CORE_RPC_STATUS_OK;
return true;
}