Skip to content

Commit

Permalink
pos: Temporarily, do not add any new inputs in the case of a legacy w…
Browse files Browse the repository at this point in the history
…allet
  • Loading branch information
lateminer committed Jan 27, 2024
1 parent b3f9e81 commit 55f026c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/wallet/staking.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,10 @@ 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 55f026c

Please sign in to comment.