Skip to content

Commit

Permalink
Revert auto auth selecting protection (#911)
Browse files Browse the repository at this point in the history
Signed-off-by: Anthony Fieroni <[email protected]>
  • Loading branch information
bvbfan authored Nov 17, 2021
1 parent 2baae1d commit 5d39ffb
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2562,15 +2562,6 @@ void CWallet::AvailableCoins(interfaces::Chain::Lock& locked_chain, std::vector<
continue;
}

if (!wtx.isAbandoned()) {
// do not select auto auth outputs
std::vector<unsigned char> metadata;
auto txType = GuessCustomTxType(*wtx.tx, metadata);
if (txType == CustomTxType::AutoAuthPrep) {
continue;
}
}

auto optHeight = locked_chain.getHeight();
bool const lockedCollateral = optHeight && !chain().mnCanSpend(wtx.tx->GetHash(), *optHeight);

Expand Down

0 comments on commit 5d39ffb

Please sign in to comment.