From b0f753bf756a69d9fc38f0560d62545fd0659a8f Mon Sep 17 00:00:00 2001 From: Ash Ketchum Date: Wed, 22 Jan 2014 21:14:06 +0000 Subject: [PATCH] fixed dos hole -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 orbit fixed Dos hole congrats! first coin with a hard stop! I will mine you! -----BEGIN PGP SIGNATURE----- Version: BCPG v1.47 iHwEARECADwFAlLgNI41HEFzaCBLZXRjaHVtIChBc2ggS2V0Y2h1bSkgPGFzaGtl dGNodW1AdmlzdG9tYWlsLmNvbT4ACgkQu8Tc5rjr4InTWACbBRiCbs9WAXDqfryv eO6MnG9MjMMAniaq+0v99ertmQz20zndbWCDfVeF =v0uB -----END PGP SIGNATURE----- --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index b44a0c3..932dfab 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1565,7 +1565,7 @@ bool CBlock::ConnectBlock(CTxDB& txdb, CBlockIndex* pindex, bool fJustCheck) } if (vtx[0].GetValueOut() > GetProofOfWorkReward(pindex->nHeight, nFees, prevHash)) - return false; + return DoS(100, error("ConnectBlock() : coinbase pays too much (actual=%"PRI64d" vs limit=%"PRI64d")", vtx[0].GetValueOut(), GetBlockValue(pindex->nHeight, nFees))); // Update block index on disk without changing it in memory. // The memory index structure will be changed after the db commits.