X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fmain.cpp;h=b8d83b28acd60beb49270b8818f82ff930c80a64;hb=2a1e2fa1bc6540d43a7f3afb545075db56dc5933;hp=4de69bf0de3797a4bbef6ffd0cac2e99f8a80ad1;hpb=dffda08fddf00889dd710ab704e9e99929be325a;p=novacoin.git diff --git a/src/main.cpp b/src/main.cpp index 4de69bf..b8d83b2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1579,8 +1579,8 @@ bool CBlock::AcceptBlock() return DoS(100, error("AcceptBlock() : rejected by automatic checkpoint at %d", Checkpoints::nAutoCheckpoint)); // ppcoin: check that the block satisfies synchronized checkpoint - if (!Checkpoints::CheckSync(nHeight, hash)) - return DoS(100, error("AcceptBlock() : rejected by synchronized checkpoint")); + if (!Checkpoints::CheckSync(hash, pindexPrev)) + return error("AcceptBlock() : rejected by synchronized checkpoint"); // Write block to history file if (!CheckDiskSpace(::GetSerializeSize(*this, SER_DISK)))