From 10f1deb2bf1337af2977b1ef7716c5ad00213efa Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 26 Aug 2013 02:44:29 +0400 Subject: [PATCH] Don't close database during proof-of-stake checking --- src/kernel.cpp | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/kernel.cpp b/src/kernel.cpp index fe3b0f6..645905f 100644 --- a/src/kernel.cpp +++ b/src/kernel.cpp @@ -360,7 +360,10 @@ bool CheckProofOfStake(const CTransaction& tx, unsigned int nBits, uint256& hash CTxIndex txindex; if (!txPrev.ReadFromDisk(txdb, txin.prevout, txindex)) return tx.DoS(1, error("CheckProofOfStake() : INFO: read txPrev failed")); // previous transaction not in main chain, may occur during initial download + +#ifndef USE_LEVELDB txdb.Close(); +#endif // Verify signature if (!VerifySignature(txPrev, tx, 0, true, 0)) -- 1.7.1