mirror of
https://github.com/monero-project/monero.git
synced 2024-12-24 04:29:43 +00:00
tx_pool: guard against failure getting tx hash
Should be impossible in practice, but easy change CID 175282
This commit is contained in:
parent
54cc209a5e
commit
50e096987b
1 changed files with 2 additions and 1 deletions
|
@ -298,7 +298,8 @@ namespace cryptonote
|
||||||
{
|
{
|
||||||
crypto::hash h = null_hash;
|
crypto::hash h = null_hash;
|
||||||
size_t blob_size = 0;
|
size_t blob_size = 0;
|
||||||
get_transaction_hash(tx, h, blob_size);
|
if (!get_transaction_hash(tx, h, blob_size) || blob_size == 0)
|
||||||
|
return false;
|
||||||
return add_tx(tx, h, blob_size, tvc, keeped_by_block, relayed, do_not_relay, version);
|
return add_tx(tx, h, blob_size, tvc, keeped_by_block, relayed, do_not_relay, version);
|
||||||
}
|
}
|
||||||
//---------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue