diff options
| author | Pieter Wuille <[email protected]> | 2013-01-27 00:15:45 +0100 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2013-01-30 03:56:44 +0100 |
| commit | 86c82bf9d09f4b3f9c29cc49a4615efd8c60a152 (patch) | |
| tree | 88c9f0bfae377f71a22ed5eae532c1e9da6dc841 /src/main.cpp | |
| parent | CValidationState framework (diff) | |
| download | discoin-86c82bf9d09f4b3f9c29cc49a4615efd8c60a152.tar.xz discoin-86c82bf9d09f4b3f9c29cc49a4615efd8c60a152.zip | |
Treat coinbase value violation as DoS
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 413698a76..1d881c0a3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1668,7 +1668,7 @@ bool CBlock::ConnectBlock(CValidationState &state, CBlockIndex* pindex, CCoinsVi printf("- Connect %u transactions: %.2fms (%.3fms/tx, %.3fms/txin)\n", (unsigned)vtx.size(), 0.001 * nTime, 0.001 * nTime / vtx.size(), nInputs <= 1 ? 0 : 0.001 * nTime / (nInputs-1)); if (vtx[0].GetValueOut() > GetBlockValue(pindex->nHeight, nFees)) - return state.Invalid(error("ConnectBlock() : coinbase pays too much (actual=%"PRI64d" vs limit=%"PRI64d")", vtx[0].GetValueOut(), GetBlockValue(pindex->nHeight, nFees))); + return state.DoS(100, error("ConnectBlock() : coinbase pays too much (actual=%"PRI64d" vs limit=%"PRI64d")", vtx[0].GetValueOut(), GetBlockValue(pindex->nHeight, nFees))); if (!control.Wait()) return state.DoS(100, false); |