Re: [Bitcoin-development] Newly introduced DoS

2011-09-27 Thread Luke-Jr
What about this one? @@ -1276,13 +1278,13 @@ bool CBlock::AcceptBlock() // Get prev block index mapuint256, CBlockIndex*::iterator mi = mapBlockIndex.find(hashPrevBlock); if (mi == mapBlockIndex.end()) -return error(AcceptBlock() : prev block not found); +return

Re: [Bitcoin-development] Newly introduced DoS

2011-09-27 Thread Gavin Andresen
@@ -1276,13 +1278,13 @@ bool CBlock::AcceptBlock()     // Get prev block index     mapuint256, CBlockIndex*::iterator mi = mapBlockIndex.find(hashPrevBlock);     if (mi == mapBlockIndex.end()) -        return error(AcceptBlock() : prev block not found); +        return DoS(10,