aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db/blockchain_db.cpp
diff options
context:
space:
mode:
authorwarptangent <warptangent@tutanota.com>2015-12-26 14:27:35 -0800
committerwarptangent <warptangent@tutanota.com>2015-12-26 14:30:20 -0800
commitee9d71e9f94ba8571c44c889a70bda77c8961959 (patch)
treec5636f8390be8d8a51d81e7c05dbe8f82ba1440b /src/blockchain_db/blockchain_db.cpp
parentMerge pull request #565 (diff)
downloadmonero-ee9d71e9f94ba8571c44c889a70bda77c8961959.tar.xz
BlockchainDB: skip fixup check if read-only database
Diffstat (limited to '')
-rw-r--r--src/blockchain_db/blockchain_db.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/blockchain_db/blockchain_db.cpp b/src/blockchain_db/blockchain_db.cpp
index 4fa8cce26..0635f2000 100644
--- a/src/blockchain_db/blockchain_db.cpp
+++ b/src/blockchain_db/blockchain_db.cpp
@@ -199,6 +199,11 @@ void BlockchainDB::show_stats()
void BlockchainDB::fixup()
{
+ if (is_read_only()) {
+ LOG_PRINT_L1("Database is opened read only - skipping fixup check");
+ return;
+ }
+
// There was a bug that would cause key images for transactions without
// any outputs to not be added to the spent key image set. There are two
// instances of such transactions, in blocks 202612 and 685498.