Skip to content

Commit

Permalink
enable hip30 epoch for testnet (#4526)
Browse files Browse the repository at this point in the history
* enable hip30 epoch for testnet
* fix date comment
* set blockgas30M epoch
  • Loading branch information
diego1q2w authored Oct 11, 2023
1 parent e133806 commit d2743d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion core/state_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -568,10 +568,12 @@ func MayBalanceMigration(
}
}
}
// for testing balance migration on testnet
isTestnet := nodeconfig.GetDefaultConfig().GetNetworkType() == nodeconfig.Testnet
// for testing balance migration on devnet
isDevnet := nodeconfig.GetDefaultConfig().GetNetworkType() == nodeconfig.Partner
isLocalnet := nodeconfig.GetDefaultConfig().GetNetworkType() == nodeconfig.Localnet
if isDevnet || isLocalnet {
if isDevnet || isLocalnet || isTestnet {
if config.IsOneEpochBeforeHIP30(header.Epoch()) {
if myShard := chain.ShardID(); myShard != shard.BeaconChainShardID {
parentRoot := chain.GetBlockByHash(
Expand Down
4 changes: 2 additions & 2 deletions internal/params/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ var (
LeaderRotationExternalBeaconLeaders: EpochTBD,
FeeCollectEpoch: big.NewInt(1296), // 2023-04-28 07:14:20+00:00
ValidatorCodeFixEpoch: big.NewInt(1296), // 2023-04-28 07:14:20+00:00
HIP30Epoch: EpochTBD,
BlockGas30MEpoch: EpochTBD,
HIP30Epoch: big.NewInt(2176), // 2023-10-12 10:00:00+00:00
BlockGas30MEpoch: big.NewInt(2176), // 2023-10-12 10:00:00+00:00
}
// PangaeaChainConfig contains the chain parameters for the Pangaea network.
// All features except for CrossLink are enabled at launch.
Expand Down

0 comments on commit d2743d9

Please sign in to comment.