Skip to content

Commit

Permalink
Add missing IsV13Enabled guard in sidestake BlockValidate
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescowens committed Dec 26, 2023
1 parent 303ee5c commit 1341322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gridcoin/sidestake.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ bool SideStakeRegistry::Validate(const Contract& contract, const CTransaction& t

bool SideStakeRegistry::BlockValidate(const ContractContext& ctx, int& DoS) const
{
return Validate(ctx.m_contract, ctx.m_tx, DoS);
return (IsV13Enabled(ctx.m_pindex->nHeight) && Validate(ctx.m_contract, ctx.m_tx, DoS));
}

int SideStakeRegistry::Initialize()
Expand Down

0 comments on commit 1341322

Please sign in to comment.