Merge pull request #77 from freynder/start-many-enh-v0.11.0.x

Fixed lookup for correct vin in GetMasterNodeVin when txHash is availabl...
This commit is contained in:
Darkcoin 2014-12-16 14:06:15 -07:00
commit a0588cbf15

View File

@ -296,10 +296,12 @@ bool CActiveMasternode::GetMasterNodeVin(CTxIn& vin, CPubKey& pubkey, CKey& secr
if(!strTxHash.empty()) {
// Let's find it
uint256 txHash(strTxHash);
int outputIndex = boost::lexical_cast<int>(outputIndex);
int outputIndex = 0;
outputIndex = boost::lexical_cast<int>(outputIndex);
bool found = false;
BOOST_FOREACH(COutput& out, possibleCoins) {
if(true) {
if(out.tx->GetHash() == txHash && out.i == outputIndex)
{
selectedOutput = &out;
found = true;
break;