X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fkernel.cpp;h=4b03c7fab3b6a4097fbeab875e2f761afaa44aea;hb=7e9ceb798f2685429f3387625beb872bbda1567c;hp=71a14e3cbd2f9a69224ac318df9ebdddcc3ea3b5;hpb=0c0eb55c15b7cc09e8f422f1e2e54fe569f06c2e;p=novacoin.git diff --git a/src/kernel.cpp b/src/kernel.cpp index 71a14e3..4b03c7f 100644 --- a/src/kernel.cpp +++ b/src/kernel.cpp @@ -5,7 +5,7 @@ #include #include "kernel.h" -#include "db.h" +#include "txdb.h" using namespace std; @@ -21,6 +21,7 @@ static std::map mapStakeModifierCheckpoints = ( 9690, 0x97dcdafau ) ( 12661, 0x5d84115du ) ( 37092, 0xd230afccu ) + ( 44200, 0x05370164u ) ; // Hard checkpoints of stake modifiers to ensure they are deterministic (testNet) @@ -360,7 +361,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))