Revert "low risk, potentially varint overflow bug patched thanks to BBR"

This reverts commit 4e2b2b942d.
This commit is contained in:
Riccardo Spagni
2014-09-25 08:24:42 +02:00
parent 145dc19eeb
commit 59a8366bb1
9 changed files with 14 additions and 85 deletions

View File

@@ -59,9 +59,9 @@ namespace cryptonote
}
//---------------------------------------------------------------------------------
bool tx_memory_pool::add_tx(const transaction &tx, const crypto::hash &id, tx_verification_context& tvc, bool kept_by_block)
bool tx_memory_pool::add_tx(const transaction &tx, /*const crypto::hash& tx_prefix_hash,*/ const crypto::hash &id, size_t blob_size, tx_verification_context& tvc, bool kept_by_block)
{
size_t blob_size = get_object_blobsize(tx);
if(!check_inputs_types_supported(tx))
{
@@ -179,8 +179,9 @@ namespace cryptonote
bool tx_memory_pool::add_tx(const transaction &tx, tx_verification_context& tvc, bool keeped_by_block)
{
crypto::hash h = null_hash;
get_transaction_hash(tx, h);
return add_tx(tx, h, tvc, keeped_by_block);
size_t blob_size = 0;
get_transaction_hash(tx, h, blob_size);
return add_tx(tx, h, blob_size, tvc, keeped_by_block);
}
//---------------------------------------------------------------------------------
bool tx_memory_pool::remove_transaction_keyimages(const transaction& tx)