BlockchainDB: skip fixup check if read-only database

This commit is contained in:
warptangent 2015-12-26 14:27:35 -08:00
parent 95ceb715dc
commit ee9d71e9f9
No known key found for this signature in database
GPG key ID: 0E490BEBFBE4E92D
6 changed files with 32 additions and 0 deletions

View file

@ -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.