mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-22 23:28:52 +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
@ -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 New Issue
Block a user