diff options
| author | Gavin Andresen <[email protected]> | 2011-09-27 11:19:57 -0400 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2011-09-27 11:19:57 -0400 |
| commit | a8c108bca1a2e67bd7c335119d9b04c87552c159 (patch) | |
| tree | b4a5bbd7d4be7272aafbec877378fd465376fffc /src/main.cpp | |
| parent | Merge pull request #532 from TheBlueMatt/build-updates (diff) | |
| download | discoin-a8c108bca1a2e67bd7c335119d9b04c87552c159.tar.xz discoin-a8c108bca1a2e67bd7c335119d9b04c87552c159.zip | |
Remove DoS penalty for SigOpCount or immature transactions
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index be6fc9c53..f129d7c7b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -364,7 +364,7 @@ bool CTransaction::AcceptToMemoryPool(CTxDB& txdb, bool fCheckInputs, bool* pfMi // 34 bytes because a TxOut is: // 20-byte address + 8 byte bitcoin amount + 5 bytes of ops + 1 byte script length if (GetSigOpCount() > nSize / 34 || nSize < 100) - return DoS(10, error("AcceptToMemoryPool() : transaction with out-of-bounds SigOpCount")); + return error("AcceptToMemoryPool() : transaction with out-of-bounds SigOpCount"); // Rather not work on nonstandard transactions (unless -testnet) if (!fTestNet && !IsStandard()) @@ -864,7 +864,7 @@ bool CTransaction::ConnectInputs(CTxDB& txdb, map<uint256, CTxIndex>& mapTestPoo if (txPrev.IsCoinBase()) for (CBlockIndex* pindex = pindexBlock; pindex && pindexBlock->nHeight - pindex->nHeight < COINBASE_MATURITY; pindex = pindex->pprev) if (pindex->nBlockPos == txindex.pos.nBlockPos && pindex->nFile == txindex.pos.nFile) - return DoS(10, error("ConnectInputs() : tried to spend coinbase at depth %d", pindexBlock->nHeight - pindex->nHeight)); + return error("ConnectInputs() : tried to spend coinbase at depth %d", pindexBlock->nHeight - pindex->nHeight); // Skip ECDSA signature verification when connecting blocks (fBlock=true) during initial download // (before the last blockchain checkpoint). This is safe because block merkle hashes are |