diff options
| author | Pieter Wuille <[email protected]> | 2013-02-06 16:33:51 +0100 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2013-02-06 16:33:51 +0100 |
| commit | 7cdc37c0a427a378944cf58798164320110efe39 (patch) | |
| tree | f40e716c3323354c0e1b13b0155f8375ddfcac1b /src/main.cpp | |
| parent | Merge branch 'reindexgen' of git://github.com/sipa/bitcoin (diff) | |
| download | discoin-7cdc37c0a427a378944cf58798164320110efe39.tar.xz discoin-7cdc37c0a427a378944cf58798164320110efe39.zip | |
Bugfix CValidationResult for BIP30 + add 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 cfb459c9a..1e40db8f7 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")); } } |