diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-03-22 18:03:23 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-03-23 09:25:22 +0000 |
| commit | 558cfc31caeb88398fe5bab9292246739586374d (patch) | |
| tree | 4efe29371b0a9dd3d195d01ccff51a9d9b5b2a7b /src/cryptonote_core/tx_pool.h | |
| parent | f065234b71f2e3d374d44435d47db4cd75ab1294 (diff) | |
| download | monzero-core-558cfc31caeb88398fe5bab9292246739586374d.tar.gz monzero-core-558cfc31caeb88398fe5bab9292246739586374d.tar.xz monzero-core-558cfc31caeb88398fe5bab9292246739586374d.zip | |
core, wallet: faster tx pool scanning
Includes a new RPC to get tx pool hashes fast.
Diffstat (limited to 'src/cryptonote_core/tx_pool.h')
| -rw-r--r-- | src/cryptonote_core/tx_pool.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cryptonote_core/tx_pool.h b/src/cryptonote_core/tx_pool.h index d71032943..d19f83b2e 100644 --- a/src/cryptonote_core/tx_pool.h +++ b/src/cryptonote_core/tx_pool.h @@ -234,6 +234,13 @@ namespace cryptonote void get_transactions(std::list<transaction>& txs) const; /** + * @brief get a list of all transaction hashes in the pool + * + * @param txs return-by-reference the list of transactions + */ + void get_transaction_hashes(std::vector<crypto::hash>& txs) const; + + /** * @brief get information about all transactions and key images in the pool * * see documentation on tx_info and spent_key_image_info for more details |
