From f55cb440012da341e049578ec1570bb0babf86b9 Mon Sep 17 00:00:00 2001 From: ledgerwatch Date: Fri, 13 Nov 2020 08:35:14 +0000 Subject: [PATCH] Update skip analysis (#1351) --- core/skip_analysis.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/skip_analysis.go b/core/skip_analysis.go index 564fcbc79..d229a766c 100644 --- a/core/skip_analysis.go +++ b/core/skip_analysis.go @@ -20,7 +20,10 @@ import ( "github.com/ledgerwatch/turbo-geth/params" ) -// This function tells us whether we can skip performing jumpdest analysis +// MainnetNotCheckedFrom is the first block number not yet checked for invalid jumps +const MainnetNotCheckedFrom uint64 = 11243897 + +// SkipAnalysis function tells us whether we can skip performing jumpdest analysis // for the historical blocks (on mainnet now but perhaps on the testsnets // in the future), because we have verified that there were only a few blocks // where codeBitmap was useful. Invalid jumps either did not occur, or were @@ -30,9 +33,6 @@ import ( // 0x86e55d1818b5355424975de9633a57c40789ca08552297b726333a9433949c92 (block 6426298) // 0x3666640316df11865abd1352f4c0b4c5126f8ac1d858ef2a0c6e744a4865bca2 (block 5800596) // 0xcdb5bf0b4b51093e1c994f471921f88623c9d3e1b6aa2782049f53a0048f2b32 (block 11079912) - -const MainnetNotCheckedFrom uint64 = 11196069 - func SkipAnalysis(config *params.ChainConfig, blockNumber uint64) bool { if config != params.MainnetChainConfig { return false