Skip to content

Commit

Permalink
validation: Do not pass a redundant argument in the AcceptBlockHeader…
Browse files Browse the repository at this point in the history
…() call
  • Loading branch information
lateminer committed Feb 3, 2024
1 parent 55e93a2 commit 516883c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4130,7 +4130,7 @@ bool ChainstateManager::AcceptBlock(const std::shared_ptr<const CBlock>& pblock,
CBlockIndex *pindexDummy = nullptr;
CBlockIndex *&pindex = ppindex ? *ppindex : pindexDummy;

bool accepted_header{AcceptBlockHeader(block, state, &pindex, min_pow_checked, block.IsProofOfStake())};
bool accepted_header{AcceptBlockHeader(block, state, &pindex, min_pow_checked)};
CheckBlockIndex();

if (!accepted_header)
Expand Down

0 comments on commit 516883c

Please sign in to comment.