aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/blockchain.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-12-02 18:51:28 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-12-02 18:53:30 +0000
commit5985c5afe8051ef9933212e62293ece3634a5024 (patch)
treea3d54b1111c7f9d346c94900613943f2c84ca364 /src/cryptonote_core/blockchain.h
parentMerge pull request #6174 (diff)
downloadmonero-5985c5afe8051ef9933212e62293ece3634a5024.tar.xz
rpc: add bad-blocks to flush_cache RPC
Flushes m_invalid_blocks in Blockchain.
Diffstat (limited to 'src/cryptonote_core/blockchain.h')
-rw-r--r--src/cryptonote_core/blockchain.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cryptonote_core/blockchain.h b/src/cryptonote_core/blockchain.h
index 6467031c2..915c48f80 100644
--- a/src/cryptonote_core/blockchain.h
+++ b/src/cryptonote_core/blockchain.h
@@ -1016,6 +1016,11 @@ namespace cryptonote
*/
bool has_block_weights(uint64_t height, uint64_t nblocks) const;
+ /**
+ * @brief flush the invalid blocks set
+ */
+ void flush_invalid_blocks();
+
#ifndef IN_UNIT_TESTS
private:
#endif