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,

Re: [Bitcoin-development] Deprecating midstate in getwork?

2011-09-27 Thread Jeff Garzik
On Mon, Sep 26, 2011 at 3:42 PM, Nils Schneider n...@nilsschneider.net wrote: I'd like to simplify the internal reference miner and remove all dependencies on cryptopp (it's the only place we use cryptopp instead of OpenSSL). Unfortunately, cryptopp is also used to calculate getwork midstate.