Skip to content

Commit

Permalink
MN: Fix issue bitcoin#24 with collateral output lock
Browse files Browse the repository at this point in the history
  • Loading branch information
AltcoinBaggins authored and uhliksk committed May 1, 2019
1 parent 65101fb commit 3393d47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2765,7 +2765,8 @@ void CWallet::AvailableCoins(std::vector<COutput> &vCoins, bool fOnlySafe, const
if (coinControl && coinControl->HasSelected() && !coinControl->fAllowOtherInputs && !coinControl->IsSelected(COutPoint(entry.first, i)))
continue;

if (IsLockedCoin(entry.first, i))
// VELES edit: fix inconvenience and allow locked collateral
if (IsLockedCoin(entry.first, i) && nCoinType != ONLY_MASTERNODE_COLLATERAL)
continue;

if (IsSpent(wtxid, i))
Expand Down

0 comments on commit 3393d47

Please sign in to comment.