Skip to content

Commit

Permalink
Revert "pos: Temporarily, do not add any new inputs in the case of a …
Browse files Browse the repository at this point in the history
…legacy wallet"

This reverts commit 55f026c.
  • Loading branch information
lateminer committed Jan 29, 2024
1 parent e05cb17 commit 5bbdbfd
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/wallet/staking.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -419,10 +419,6 @@ bool CreateCoinStake(CWallet& wallet, unsigned int nBits, int64_t nSearchInterva
if (txNew.vout.size() == 2 && ((pcoin.first->tx->vout[pcoin.second].scriptPubKey == scriptPubKeyKernel || pcoin.first->tx->vout[pcoin.second].scriptPubKey == txNew.vout[1].scriptPubKey))
&& pcoin.first->GetHash() != txNew.vin[0].prevout.hash)
{
// Stop adding more inputs in case of LegacyScriptPubKeyMan
// Blackcoin ToDo: to be removed!
if (wallet.IsLegacy())
break;
// Stop adding more inputs if already too many inputs
if (txNew.vin.size() >= 10)
break;
Expand Down

0 comments on commit 5bbdbfd

Please sign in to comment.