Skip to content

Commit

Permalink
[Wallet] GetAvailableP2CSCoins permitting unconfirmed tx.
Browse files Browse the repository at this point in the history
  • Loading branch information
furszy committed Dec 5, 2019
1 parent fe4a9b0 commit 811fb41
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/wallet/wallet.cpp
Expand Up @@ -1924,7 +1924,10 @@ void CWallet::GetAvailableP2CSCoins(std::vector<COutput>& vCoins) const {
const uint256& wtxid = it.first;
const CWalletTx* pcoin = &it.second;

if (!pcoin->IsTrusted())
bool fConflicted;
int nDepth = pcoin->GetDepthAndMempool(fConflicted);

if (fConflicted || nDepth < 0)
continue;

if (pcoin->HasP2CSOutputs()) {
Expand Down

0 comments on commit 811fb41

Please sign in to comment.