diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-06-01 21:50:46 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-06-02 09:17:41 +0100 |
commit | 2b0c632f329572b6a0d2094ba0fda6c8642b5633 (patch) | |
tree | 404b4ebf6b462f5038ed377cf3a899c5f6b80123 /src/cryptonote_core/tx_pool.h | |
parent | Merge pull request #3866 (diff) | |
download | monero-2b0c632f329572b6a0d2094ba0fda6c8642b5633.tar.xz |
tx_pool: hold off parsing a tx blob till we actually need it
Diffstat (limited to 'src/cryptonote_core/tx_pool.h')
-rw-r--r-- | src/cryptonote_core/tx_pool.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cryptonote_core/tx_pool.h b/src/cryptonote_core/tx_pool.h index 19cd83ed9..4ce2f085d 100644 --- a/src/cryptonote_core/tx_pool.h +++ b/src/cryptonote_core/tx_pool.h @@ -499,10 +499,12 @@ namespace cryptonote * @brief check if a transaction is a valid candidate for inclusion in a block * * @param txd the transaction to check (and info about it) + * @param txblob the transaction blob to check + * @param tx the parsed transaction, if successful * * @return true if the transaction is good to go, otherwise false */ - bool is_transaction_ready_to_go(txpool_tx_meta_t& txd, transaction &tx) const; + bool is_transaction_ready_to_go(txpool_tx_meta_t& txd, const cryptonote::blobdata &txblob, transaction &tx) const; /** * @brief mark all transactions double spending the one passed |