mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 13:03:17 +01:00
Fixed lookup for correct vin in GetMasterNodeVin when txHash is available.
This commit is contained in:
parent
3a7f3f8dba
commit
b57bfe0b1e
@ -296,10 +296,12 @@ bool CActiveMasternode::GetMasterNodeVin(CTxIn& vin, CPubKey& pubkey, CKey& secr
|
|||||||
if(!strTxHash.empty()) {
|
if(!strTxHash.empty()) {
|
||||||
// Let's find it
|
// Let's find it
|
||||||
uint256 txHash(strTxHash);
|
uint256 txHash(strTxHash);
|
||||||
int outputIndex = boost::lexical_cast<int>(outputIndex);
|
int outputIndex = 0;
|
||||||
|
outputIndex = boost::lexical_cast<int>(outputIndex);
|
||||||
bool found = false;
|
bool found = false;
|
||||||
BOOST_FOREACH(COutput& out, possibleCoins) {
|
BOOST_FOREACH(COutput& out, possibleCoins) {
|
||||||
if(true) {
|
if(out.tx->GetHash() == txHash && out.i == outputIndex)
|
||||||
|
{
|
||||||
selectedOutput = &out;
|
selectedOutput = &out;
|
||||||
found = true;
|
found = true;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user