rpc: add received_timestamp for pool txes in gettransactions

This commit is contained in:
moneromooo-monero
2019-11-22 15:37:31 +00:00
parent fe3f6a3e6b
commit d7cf872767
2 changed files with 6 additions and 1 deletions

View File

@@ -953,18 +953,21 @@ namespace cryptonote
{
e.double_spend_seen = it->second.double_spend_seen;
e.relayed = it->second.relayed;
e.received_timestamp = it->second.receive_time;
}
else
{
MERROR("Failed to determine pool info for " << tx_hash);
e.double_spend_seen = false;
e.relayed = false;
e.received_timestamp = 0;
}
}
else
{
e.block_height = m_core.get_blockchain_storage().get_db().get_tx_block_height(tx_hash);
e.block_timestamp = m_core.get_blockchain_storage().get_db().get_block_timestamp(e.block_height);
e.received_timestamp = 0;
e.double_spend_seen = false;
e.relayed = false;
}