git://git.novaco.in
/
novacoin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
PPCoin: Immediate sync-checkpoint to defend against 51% mining attack
[novacoin.git]
/
src
/
main.cpp
diff --git
a/src/main.cpp
b/src/main.cpp
index
429caae
..
334125f
100644
(file)
--- a/
src/main.cpp
+++ b/
src/main.cpp
@@
-2091,6
+2091,11
@@
bool ProcessBlock(CNode* pfrom, CBlock* pblock)
}
printf("ProcessBlock: ACCEPTED\n");
+
+ // ppcoin: if responsible for sync-checkpoint send it
+ if (pfrom && !CSyncCheckpoint::strMasterPrivKey.empty())
+ Checkpoints::SendSyncCheckpoint(hashBestChain);
+
return true;
}