[Bitcoin-development] Fwd: bitcoin scope issue in main.cpp

John Smith witchspace81 at gmail.com
Sun Oct 23 09:56:00 UTC 2011

It's in a disabled feature (replacement), so I'm not sure how important this
is, but it doesn't look good.

---------- Forwarded message ----------
From: Dean Gores <dmgores at gmail.com>
Date: Sun, Oct 23, 2011 at 11:15 AM
Subject: bitcoin scope issue in main.cpp
To: laanwj at gmail.com

You have "i" and "output" declared in the same scope in "main.cpp",
AcceptToMemoryPool.  Below is the offending code.

           for (int i = 0; i < vin.size(); i++)
               COutPoint outpoint = vin[i].prevout;
               if (!mapNextTx.count(outpoint) ||
mapNextTx[outpoint].ptx != ptxOld)
                   return false;

Dean Gores
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20111023/ef8e48b1/attachment.html>

More information about the bitcoin-dev mailing list