Remove mutex inside mutex
This commit is contained in:
@@ -330,7 +330,7 @@ int64_t AddNormalinputs(CMutableTransaction &mtx,CPubKey mypk,int64_t total,int3
|
|||||||
#ifdef ENABLE_WALLET
|
#ifdef ENABLE_WALLET
|
||||||
const CKeyStore& keystore = *pwalletMain;
|
const CKeyStore& keystore = *pwalletMain;
|
||||||
assert(pwalletMain != NULL);
|
assert(pwalletMain != NULL);
|
||||||
LOCK2(cs_main, pwalletMain->cs_wallet);
|
//LOCK2(cs_main, pwalletMain->cs_wallet);
|
||||||
pwalletMain->AvailableCoins(vecOutputs, false, NULL, true);
|
pwalletMain->AvailableCoins(vecOutputs, false, NULL, true);
|
||||||
utxos = (struct CC_utxo *)calloc(maxutxos,sizeof(*utxos));
|
utxos = (struct CC_utxo *)calloc(maxutxos,sizeof(*utxos));
|
||||||
threshold = total/maxinputs;
|
threshold = total/maxinputs;
|
||||||
@@ -340,7 +340,7 @@ int64_t AddNormalinputs(CMutableTransaction &mtx,CPubKey mypk,int64_t total,int3
|
|||||||
{
|
{
|
||||||
txid = out.tx->GetHash();
|
txid = out.tx->GetHash();
|
||||||
vout = out.i;
|
vout = out.i;
|
||||||
if ( GetTransaction(txid,tx,hashBlock,false) != 0 && tx.vout.size() > 0 && vout < tx.vout.size() && tx.vout[vout].scriptPubKey.IsPayToCryptoCondition() == 0 )
|
if ( myGetTransaction(txid,tx,hashBlock) != 0 && tx.vout.size() > 0 && vout < tx.vout.size() && tx.vout[vout].scriptPubKey.IsPayToCryptoCondition() == 0 )
|
||||||
{
|
{
|
||||||
if ( out.tx->vout[out.i].nValue < threshold )
|
if ( out.tx->vout[out.i].nValue < threshold )
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
@@ -1263,7 +1263,7 @@ double DiceStatus(uint64_t txfee,char *planstr,uint256 fundingtxid,uint256 bettx
|
|||||||
{
|
{
|
||||||
fprintf(stderr,"(");
|
fprintf(stderr,"(");
|
||||||
mySenddicetransaction(res,entropyused,txid);
|
mySenddicetransaction(res,entropyused,txid);
|
||||||
fprintf(stderr,"(");
|
fprintf(stderr,")");
|
||||||
n++;
|
n++;
|
||||||
} else error = res;
|
} else error = res;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user