#include "checkpoints.h"
-#include "txdb.h"
+#include "txdb-leveldb.h"
#include "main.h"
#include "uint256.h"
if (!txdb.TxnCommit())
return error("WriteSyncCheckpoint(): failed to commit to db sync checkpoint %s", hashCheckpoint.ToString().c_str());
-#ifndef USE_LEVELDB
- txdb.Close();
-#endif
-
Checkpoints::hashSyncCheckpoint = hashCheckpoint;
return true;
}
}
}
-#ifndef USE_LEVELDB
- txdb.Close();
-#endif
if (!WriteSyncCheckpoint(hashPendingCheckpoint))
return error("AcceptPendingSyncCheckpoint(): failed to write sync checkpoint %s", hashPendingCheckpoint.ToString().c_str());
hashPendingCheckpoint = 0;
{
return error("ResetSyncCheckpoint: SetBestChain failed for hardened checkpoint %s", hash.ToString().c_str());
}
-
-#ifndef USE_LEVELDB
- txdb.Close();
-#endif
-
}
else if(!mapBlockIndex.count(hash))
{
}
}
-#ifndef USE_LEVELDB
- txdb.Close();
-#endif
-
if (!Checkpoints::WriteSyncCheckpoint(hashCheckpoint))
return error("ProcessSyncCheckpoint(): failed to write sync checkpoint %s", hashCheckpoint.ToString().c_str());
Checkpoints::checkpointMessage = *this;