diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-12-02 18:51:28 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-12-02 18:53:30 +0000 |
commit | 5985c5afe8051ef9933212e62293ece3634a5024 (patch) | |
tree | a3d54b1111c7f9d346c94900613943f2c84ca364 /src/cryptonote_core/blockchain.h | |
parent | Merge pull request #6174 (diff) | |
download | monero-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.h | 5 |
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 |