git://git.novaco.in
/
NovacoinLibrary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
4c24ba3
)
Use Checkpoints.Verify to verify whether hash contradicts the table of checkpoints...
author
CryptoManiac
<balthazar.ad@gmail.com>
Sat, 12 Sep 2015 12:03:56 +0000 (15:03 +0300)
committer
CryptoManiac
<balthazar.ad@gmail.com>
Sat, 12 Sep 2015 12:03:56 +0000 (15:03 +0300)
Novacoin/CBlockStore.cs
patch
|
blob
|
history
diff --git
a/Novacoin/CBlockStore.cs
b/Novacoin/CBlockStore.cs
index
25ea3bb
..
cca056e
100644
(file)
--- 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.