corr else if in FinalizeCCtx

This commit is contained in:
dimxy
2019-01-12 16:23:41 +05:00
parent 9f1c21c5b5
commit e1ddbcaf6c
2 changed files with 4 additions and 4 deletions

View File

@@ -138,16 +138,16 @@ std::string FinalizeCCTx(uint64_t CCmask,struct CCcontract_info *cp,CMutableTran
Getscriptaddress(destaddr,vintx.vout[utxovout].scriptPubKey);
//fprintf(stderr,"FinalizeCCTx() vin.%d is CC %.8f -> (%s)\n",i,(double)utxovalues[i]/COIN,destaddr);
std::cerr << "FinalizeCCtx() destaddr=" << destaddr << " myaddr=" << myaddr << std::endl;
if ( strcmp(destaddr,myaddr) == 0 )
if( strcmp(destaddr,myaddr) == 0 )
{
privkey = myprivkey;
cond = mycond;
}
if (strcmp(destaddr, mytokensaddr) == 0) // if this is TokensCC1vout
else if (strcmp(destaddr, mytokensaddr) == 0) // if this is TokensCC1vout
{
privkey = myprivkey;
cond = mytokenscond;
//fprintf(stderr,"FinalizeCCTx() matched TokensCC1vout CC addr.(%s)\n",mytokensaddr);
fprintf(stderr,"FinalizeCCTx() matched TokensCC1vout CC addr.(%s)\n",mytokensaddr);
}
else if ( strcmp(destaddr,unspendable) == 0 )
{