Browse Source

Lock fix

pull/434/head
miketout 2 years ago
parent
commit
40215e0e43
  1. 11
      src/pbaas/pbaas.cpp

11
src/pbaas/pbaas.cpp

@ -6266,11 +6266,10 @@ void CConnectedChains::AggregateChainTransfers(const CTransferDestination &feeRe
CCoins coins;
CCoinsView dummy;
CCoinsViewCache view(&dummy);
{
LOCK(mempool.cs);
CCoinsViewMemPool viewMemPool(pcoinsTip, mempool);
view.SetBackend(viewMemPool);
}
LOCK2(smartTransactionCS, mempool.cs);
CCoinsViewMemPool viewMemPool(pcoinsTip, mempool);
view.SetBackend(viewMemPool);
auto outputIt = transferOutputs.begin();
bool checkLaunchCurrencies = false;
@ -6657,8 +6656,6 @@ void CConnectedChains::AggregateChainTransfers(const CTransferDestination &feeRe
TxToUniv(tx, uint256(), uni);
printf("%s: successfully built tx:\n%s\n", __func__, uni.write(1,2).c_str()); */
LOCK2(smartTransactionCS, mempool.cs);
static int lastHeight = 0;
// remove conflicts, so that we get in
std::list<CTransaction> removed;

Loading…
Cancel
Save