Skip to content

Commit

Permalink
IS-869 Invalid handling of switched off patch
Browse files Browse the repository at this point in the history
  • Loading branch information
dimalit committed Oct 19, 2023
1 parent dab6cfa commit a7c74c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libweb3jsonrpc/Eth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ bool hasPotentialInvalidTransactionsInBlock( BlockNumber _bn, const Interface& _
if ( _bn == 0 )
return false;

if ( SkipInvalidTransactionsPatch::getActivationTimestamp() == 0 )
return true;

if ( _bn == PendingBlock )
return !SkipInvalidTransactionsPatch::isEnabled();

Expand Down

0 comments on commit a7c74c7

Please sign in to comment.