diff options
author | Riccardo Spagni <ric@spagni.net> | 2014-09-24 22:28:25 +0200 |
---|---|---|
committer | Thomas Winget <tewinget@gmail.com> | 2014-09-24 22:17:33 -0400 |
commit | 4e2b2b942daa4206ec44c66e59863670dfe3fde4 (patch) | |
tree | 1f07b2ba7a500b10b723b0ca00cbc36329844d7e /src/cryptonote_core/tx_pool.cpp | |
parent | Merge pull request #159 (diff) | |
download | monero-4e2b2b942daa4206ec44c66e59863670dfe3fde4.tar.xz |
low risk, potentially varint overflow bug patched thanks to BBR
Diffstat (limited to 'src/cryptonote_core/tx_pool.cpp')
-rw-r--r-- | src/cryptonote_core/tx_pool.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/cryptonote_core/tx_pool.cpp b/src/cryptonote_core/tx_pool.cpp index 81f932014..3764cfe77 100644 --- a/src/cryptonote_core/tx_pool.cpp +++ b/src/cryptonote_core/tx_pool.cpp @@ -59,9 +59,9 @@ namespace cryptonote } //--------------------------------------------------------------------------------- - 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) + bool tx_memory_pool::add_tx(const transaction &tx, const crypto::hash &id, tx_verification_context& tvc, bool kept_by_block) { - + size_t blob_size = get_object_blobsize(tx); if(!check_inputs_types_supported(tx)) { @@ -179,9 +179,8 @@ namespace cryptonote bool tx_memory_pool::add_tx(const transaction &tx, tx_verification_context& tvc, bool keeped_by_block) { crypto::hash h = null_hash; - size_t blob_size = 0; - get_transaction_hash(tx, h, blob_size); - return add_tx(tx, h, blob_size, tvc, keeped_by_block); + get_transaction_hash(tx, h); + return add_tx(tx, h, tvc, keeped_by_block); } //--------------------------------------------------------------------------------- bool tx_memory_pool::remove_transaction_keyimages(const transaction& tx) |