diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-01-30 13:28:26 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-01-30 13:28:26 +0000 |
commit | bf6d1474c097ee0affe827fe2e3dac489b290f40 (patch) | |
tree | c662b2241380a793c64c2f1254de14cdf34339c8 /src/cryptonote_core/blockchain.h | |
parent | rpc: add missing return on error when getting a tx (diff) | |
download | monero-bf6d1474c097ee0affe827fe2e3dac489b290f40.tar.xz |
new flush_txpool command, and associated RPC call
It can flush a particular tx, or the whole pool (the RPC command
can flush a list of transactions too)
Diffstat (limited to 'src/cryptonote_core/blockchain.h')
-rw-r--r-- | src/cryptonote_core/blockchain.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cryptonote_core/blockchain.h b/src/cryptonote_core/blockchain.h index 87c8a2454..ecabf5376 100644 --- a/src/cryptonote_core/blockchain.h +++ b/src/cryptonote_core/blockchain.h @@ -164,6 +164,8 @@ namespace cryptonote bool get_hard_fork_voting_info(uint8_t version, uint32_t &window, uint32_t &votes, uint32_t &threshold, uint64_t &earliest_height, uint8_t &voting) const; + bool flush_txes_from_pool(const std::list<crypto::hash> &txids); + bool for_all_key_images(std::function<bool(const crypto::key_image&)>) const; bool for_all_blocks(std::function<bool(uint64_t, const crypto::hash&, const block&)>) const; bool for_all_transactions(std::function<bool(const crypto::hash&, const cryptonote::transaction&)>) const; |