aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2013-02-06 16:33:51 +0100
committerPieter Wuille <pieter.wuille@gmail.com>2013-02-06 16:33:51 +0100
commit7cdc37c0a427a378944cf58798164320110efe39 (patch)
treef40e716c3323354c0e1b13b0155f8375ddfcac1b /src/main.cpp
parent79892883d714dd34906a0f641400d6b237ebd75c (diff)
Bugfix CValidationResult for BIP30 + add DoS
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index cfb459c9a7..1e40db8f75 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1605,7 +1605,7 @@ bool CBlock::ConnectBlock(CValidationState &state, CBlockIndex* pindex, CCoinsVi
for (unsigned int i=0; i<vtx.size(); i++) {
uint256 hash = GetTxHash(i);
if (view.HaveCoins(hash) && !view.GetCoins(hash).IsPruned())
- return error("ConnectBlock() : tried to overwrite transaction");
+ return state.DoS(100, error("ConnectBlock() : tried to overwrite transaction"));
}
}