Skip to content

Commit

Permalink
Merge pull request #6 from reddink/block_staking
Browse files Browse the repository at this point in the history
Resolve Block staking error
  • Loading branch information
lateminer authored Jan 29, 2024
2 parents c7a8bfb + 8bfea96 commit e05cb17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wallet/staking.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -485,10 +485,10 @@ bool CreateCoinStake(CWallet& wallet, unsigned int nBits, int64_t nSearchInterva

// Sign
int nIn = 0;
SignatureData empty;

if (wallet.IsLegacy()) {
for (const auto &pcoin : vwtxPrev) {
SignatureData empty;
if (!SignSignature(*wallet.GetLegacyScriptPubKeyMan(), *pcoin, txNew, nIn++, SIGHASH_ALL, empty))
return error("CreateCoinStake : failed to sign coinstake");
}
Expand Down

0 comments on commit e05cb17

Please sign in to comment.