From 5021810650afc3073c2af6953ff046ad4d27a1fc Mon Sep 17 00:00:00 2001 From: practicalswift Date: Sun, 6 Dec 2020 00:53:28 +0000 Subject: [PATCH] Make CanFlushToDisk a const member function --- src/validation.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/validation.h b/src/validation.h index ffb038ad75f..4ec4ee8a7f5 100644 --- a/src/validation.h +++ b/src/validation.h @@ -564,7 +564,7 @@ public: //! @returns whether or not the CoinsViews object has been fully initialized and we can //! safely flush this object to disk. - bool CanFlushToDisk() EXCLUSIVE_LOCKS_REQUIRED(cs_main) { + bool CanFlushToDisk() const EXCLUSIVE_LOCKS_REQUIRED(cs_main) { return m_coins_views && m_coins_views->m_cacheview; }