X-Git-Url: https://git.novaco.in/?p=NovacoinLibrary.git;a=blobdiff_plain;f=Novacoin%2FCBlockStore.cs;fp=Novacoin%2FCBlockStore.cs;h=cca056e90a9855309496a5220f247ab038e5fbbb;hp=25ea3bbef3bc856581ee90ced5a3e346254641e2;hb=7d59deb2e70c69cad8526523f90b3fbdbfe40e17;hpb=4c24ba3c595955b43e70b93766cabc47756eefec diff --git a/Novacoin/CBlockStore.cs b/Novacoin/CBlockStore.cs index 25ea3bb..cca056e 100644 --- a/Novacoin/CBlockStore.cs +++ b/Novacoin/CBlockStore.cs @@ -1072,6 +1072,12 @@ namespace Novacoin } } + // Check that the block chain matches the known block chain up to a checkpoint + if (!Checkpoints.Verify(nHeight, nHash)) + { + return false; // rejected by checkpoint lock-in + } + // TODO: Enforce rule that the coinbase starts with serialized block height // Write block to file.