mirror of
https://github.com/monero-project/monero.git
synced 2025-06-07 20:52:41 -04:00
tx_pool: avoid parsing a whole tx if only the prefix is needed
This commit is contained in:
parent
bb30a72367
commit
6844ae1b8d
5 changed files with 60 additions and 38 deletions
|
@ -48,6 +48,7 @@ namespace cryptonote
|
|||
//---------------------------------------------------------------
|
||||
void get_transaction_prefix_hash(const transaction_prefix& tx, crypto::hash& h);
|
||||
crypto::hash get_transaction_prefix_hash(const transaction_prefix& tx);
|
||||
bool parse_and_validate_tx_prefix_from_blob(const blobdata& tx_blob, transaction_prefix& tx);
|
||||
bool parse_and_validate_tx_from_blob(const blobdata& tx_blob, transaction& tx, crypto::hash& tx_hash, crypto::hash& tx_prefix_hash);
|
||||
bool parse_and_validate_tx_from_blob(const blobdata& tx_blob, transaction& tx);
|
||||
bool parse_and_validate_tx_base_from_blob(const blobdata& tx_blob, transaction& tx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue