Skip to content

Commit a164070

Browse files
Merge pull request #6759 from onflow/janez/fix-testnet-evm-replay
Fix testnet EVM replay
2 parents b3d0864 + 25a8af5 commit a164070

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

fvm/evm/offchain/blocks/block_context.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func UseBlockHashCorrection(chainID flow.ChainID, evmHeightOfCurrentBlock uint64
6767
// array of hashes.
6868
if chainID == flow.Mainnet && evmHeightOfCurrentBlock < blockHashListFixHCUEVMHeightMainnet {
6969
return fixedHashes[flow.Mainnet][queriedEVMHeight%256], true
70-
} else if chainID == flow.Testnet && blockHashListBugIntroducedHCUEVMHeightTestnet <= evmHeightOfCurrentBlock && evmHeightOfCurrentBlock < blockHashListFixHCUEVMHeightTestnet {
70+
} else if chainID == flow.Testnet && evmHeightOfCurrentBlock < blockHashListFixHCUEVMHeightTestnet {
7171
return fixedHashes[flow.Testnet][queriedEVMHeight%256], true
7272
}
7373
return gethCommon.Hash{}, false
@@ -83,11 +83,6 @@ const blockHashListFixHCUEVMHeightMainnet = 8357079
8383
// PR: https://github.com/onflow/flow-go/pull/6734
8484
const blockHashListFixHCUEVMHeightTestnet = 16848829
8585

86-
// Testnet52 - Spork
87-
// Flow Block: 218215350 cc7188f0bdac4c442cc3ee072557d7f7c8ca4462537da945b148d5d0efa7a1ff
88-
// PR: https://github.com/onflow/flow-go/pull/6377
89-
const blockHashListBugIntroducedHCUEVMHeightTestnet = 7038679
90-
9186
// Testnet51 - Height Coordinated Upgrade 1
9287
// Flow Block: 212562161 1a520608c5457f228405c4c30fc39c8a0af7cf915fb2ede7ec5ccffc2a000f57
9388
// PR: https://github.com/onflow/flow-go/pull/6380

0 commit comments

Comments
 (0)