mirror of
https://github.com/monero-project/monero.git
synced 2024-11-18 00:37:43 +00:00
protocol: fix incorrect tx hash in log
This commit is contained in:
parent
84dd674cd0
commit
c25260f51c
1 changed files with 3 additions and 1 deletions
|
@ -1077,8 +1077,10 @@ skip:
|
||||||
if(tvc[i].m_verifivation_failed)
|
if(tvc[i].m_verifivation_failed)
|
||||||
{
|
{
|
||||||
if (!m_p2p->for_connection(span_connection_id, [&](cryptonote_connection_context& context, nodetool::peerid_type peer_id, uint32_t f)->bool{
|
if (!m_p2p->for_connection(span_connection_id, [&](cryptonote_connection_context& context, nodetool::peerid_type peer_id, uint32_t f)->bool{
|
||||||
|
cryptonote::transaction tx;
|
||||||
|
parse_and_validate_tx_from_blob(*it, tx); // must succeed if we got here
|
||||||
LOG_ERROR_CCONTEXT("transaction verification failed on NOTIFY_RESPONSE_GET_OBJECTS, tx_id = "
|
LOG_ERROR_CCONTEXT("transaction verification failed on NOTIFY_RESPONSE_GET_OBJECTS, tx_id = "
|
||||||
<< epee::string_tools::pod_to_hex(get_blob_hash(*it)) << ", dropping connection");
|
<< epee::string_tools::pod_to_hex(cryptonote::get_transaction_hash(tx)) << ", dropping connection");
|
||||||
drop_connection(context, false, true);
|
drop_connection(context, false, true);
|
||||||
return 1;
|
return 1;
|
||||||
}))
|
}))
|
||||||
|
|
Loading…
Reference in a new issue