X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fcheckpoints.cpp;h=26cc6985059e3d6dec5a9becbaf7219be4c2930e;hb=e95e5247384a893ddb54e963f1dcc9a4d35f14e1;hp=78a0be714f804ddfa2f0dffffc17f6e8ae69d47e;hpb=4bb99fbce1b57eef730491a98d442679a1e6bd7f;p=novacoin.git diff --git a/src/checkpoints.cpp b/src/checkpoints.cpp index 78a0be7..26cc698 100644 --- a/src/checkpoints.cpp +++ b/src/checkpoints.cpp @@ -195,6 +195,12 @@ namespace Checkpoints return true; } + bool IsPendingSyncCheckpoint(uint256 hashBlock) + { + CRITICAL_BLOCK(cs_hashSyncCheckpoint) + return ((!checkpointMessagePending.IsNull()) && hashBlock == checkpointMessagePending.hashCheckpoint); + } + // ppcoin: automatic checkpoint (represented by height of checkpoint) int nAutoCheckpoint = 0; int nBranchPoint = 0; // branch point to alternative branch