Skip to content

Commit

Permalink
cleanup: Remove redundant checks in CreateCoinStake()
Browse files Browse the repository at this point in the history
  • Loading branch information
lateminer committed Jan 23, 2024
1 parent ca0801d commit 14ce8f3
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/wallet/staking.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,6 @@ bool CreateCoinStake(CWallet& wallet, unsigned int nBits, int64_t nSearchInterva

for (const std::pair<const CWalletTx*, unsigned int> &pcoin : setCoins)
{
if (!g_txindex) {
return error("tx index not available!");
}

uint256 blockHash;
CTransactionRef tx;
if (!g_txindex->FindTx(pcoin.first->GetHash(), blockHash, tx)) {
Expand Down Expand Up @@ -411,10 +407,6 @@ bool CreateCoinStake(CWallet& wallet, unsigned int nBits, int64_t nSearchInterva

for (const std::pair<const CWalletTx*, unsigned int> &pcoin : setCoins)
{
if (!g_txindex) {
return error("tx index not available!");
}

uint256 blockHash;
CTransactionRef tx;
if (!g_txindex->FindTx(pcoin.first->GetHash(), blockHash, tx)) {
Expand Down

0 comments on commit 14ce8f3

Please sign in to comment.