common, params: define cancun block for testnet and print more chain config

This commit is contained in:
Daniel Liu 2025-04-01 14:34:10 +08:00 committed by Daniel Liu
parent b8a9a8bfb1
commit 91cbe818ea
9 changed files with 24 additions and 23 deletions

View file

@ -104,13 +104,13 @@ var (
BlockNumberGas50x = MaintnetConstant.blockNumberGas50x
TIPXDCXMinerDisable = MaintnetConstant.tipXDCXMinerDisable
TIPXDCXReceiverDisable = MaintnetConstant.tipXDCXReceiverDisable
TIPUpgradeReward = MaintnetConstant.tipUpgradeReward
TIPEpochHalving = MaintnetConstant.tipEpochHalving
Eip1559Block = MaintnetConstant.eip1559Block
CancunBlock = MaintnetConstant.cancunBlock
TIPUpgradeReward = MaintnetConstant.tipUpgradeReward
TIPEpochHalving = MaintnetConstant.tipEpochHalving
TRC21IssuerSMCTestNet = MaintnetConstant.trc21IssuerSMCTestNet
TRC21IssuerSMC = MaintnetConstant.trc21IssuerSMC
TRC21IssuerSMCTestNet = MaintnetConstant.trc21IssuerSMCTestNet
XDCXListingSMC = MaintnetConstant.xdcxListingSMC
XDCXListingSMCTestNet = MaintnetConstant.xdcxListingSMCTestNet
@ -171,13 +171,13 @@ func CopyConstans(chainID uint64) {
BlockNumberGas50x = c.blockNumberGas50x
TIPXDCXMinerDisable = c.tipXDCXMinerDisable
TIPXDCXReceiverDisable = c.tipXDCXReceiverDisable
TIPUpgradeReward = c.tipUpgradeReward
TIPEpochHalving = c.tipEpochHalving
Eip1559Block = c.eip1559Block
CancunBlock = c.cancunBlock
TIPUpgradeReward = c.tipUpgradeReward
TIPEpochHalving = c.tipEpochHalving
TRC21IssuerSMCTestNet = c.trc21IssuerSMCTestNet
TRC21IssuerSMC = c.trc21IssuerSMC
TRC21IssuerSMCTestNet = c.trc21IssuerSMCTestNet
XDCXListingSMC = c.xdcxListingSMC
XDCXListingSMCTestNet = c.xdcxListingSMCTestNet

View file

@ -33,8 +33,8 @@ var DevnetConstant = constant{
tipUpgradeReward: big.NewInt(1773000),
tipEpochHalving: big.NewInt(9999999999),
trc21IssuerSMCTestNet: HexToAddress("0x0E2C88753131CE01c7551B726b28BFD04e44003F"),
trc21IssuerSMC: HexToAddress("0x8c0faeb5C6bEd2129b8674F262Fd45c4e9468bee"),
trc21IssuerSMCTestNet: HexToAddress("0x0E2C88753131CE01c7551B726b28BFD04e44003F"),
xdcxListingSMC: HexToAddress("0xDE34dD0f536170993E8CFF639DdFfCF1A85D3E53"),
xdcxListingSMCTestNet: HexToAddress("0x14B2Bf043b9c31827A472CE4F94294fE9a6277e0"),

View file

@ -30,9 +30,11 @@ var localConstant = constant{
tipXDCXReceiverDisable: big.NewInt(0),
eip1559Block: big.NewInt(0),
cancunBlock: big.NewInt(0),
tipUpgradeReward: big.NewInt(0),
tipEpochHalving: big.NewInt(0),
trc21IssuerSMCTestNet: HexToAddress("0x0E2C88753131CE01c7551B726b28BFD04e44003F"),
trc21IssuerSMC: HexToAddress("0x8c0faeb5C6bEd2129b8674F262Fd45c4e9468bee"),
trc21IssuerSMCTestNet: HexToAddress("0x0E2C88753131CE01c7551B726b28BFD04e44003F"),
xdcxListingSMC: HexToAddress("0xDE34dD0f536170993E8CFF639DdFfCF1A85D3E53"),
xdcxListingSMCTestNet: HexToAddress("0x14B2Bf043b9c31827A472CE4F94294fE9a6277e0"),

View file

@ -33,8 +33,8 @@ var MaintnetConstant = constant{
tipUpgradeReward: big.NewInt(9999999999),
tipEpochHalving: big.NewInt(9999999999),
trc21IssuerSMCTestNet: HexToAddress("0x0E2C88753131CE01c7551B726b28BFD04e44003F"),
trc21IssuerSMC: HexToAddress("0x8c0faeb5C6bEd2129b8674F262Fd45c4e9468bee"),
trc21IssuerSMCTestNet: HexToAddress("0x0E2C88753131CE01c7551B726b28BFD04e44003F"),
xdcxListingSMC: HexToAddress("0xDE34dD0f536170993E8CFF639DdFfCF1A85D3E53"),
xdcxListingSMCTestNet: HexToAddress("0x14B2Bf043b9c31827A472CE4F94294fE9a6277e0"),

View file

@ -29,12 +29,12 @@ var TestnetConstant = constant{
tipXDCXMinerDisable: big.NewInt(61290000), // Target 31st March 2024
tipXDCXReceiverDisable: big.NewInt(66825000), // Target 26 Aug 2024
eip1559Block: big.NewInt(71550000), // Target 14th Feb 2025
cancunBlock: big.NewInt(9999999999),
cancunBlock: big.NewInt(73425600),
tipUpgradeReward: big.NewInt(9999999999),
tipEpochHalving: big.NewInt(9999999999),
trc21IssuerSMCTestNet: HexToAddress("0x0E2C88753131CE01c7551B726b28BFD04e44003F"),
trc21IssuerSMC: HexToAddress("0x8c0faeb5C6bEd2129b8674F262Fd45c4e9468bee"),
trc21IssuerSMCTestNet: HexToAddress("0x0E2C88753131CE01c7551B726b28BFD04e44003F"),
xdcxListingSMC: HexToAddress("0xDE34dD0f536170993E8CFF639DdFfCF1A85D3E53"),
xdcxListingSMCTestNet: HexToAddress("0x14B2Bf043b9c31827A472CE4F94294fE9a6277e0"),

View file

@ -1,9 +1,8 @@
// Notice: this file only saves const variables for all network.
// Please run the following commands after modify this file:
//
// cp common/constants.go common/constants/constants.go.devnet
// cp common/constants.go common/constants/constants.go.testnet
// cp common/constants.go common/constants/constants.go.local
// cp common/constants.go common/constants/constants.go.testnet
// cp common/constants.go common/constants/constants.go.devnet
// cp common/constants.go common/constants/constants.go.local
package common

View file

@ -1,9 +1,8 @@
// Notice: this file only saves const variables for all network.
// Please run the following commands after modify this file:
//
// cp common/constants.go common/constants/constants.go.devnet
// cp common/constants.go common/constants/constants.go.testnet
// cp common/constants.go common/constants/constants.go.local
// cp common/constants.go common/constants/constants.go.testnet
// cp common/constants.go common/constants/constants.go.devnet
// cp common/constants.go common/constants/constants.go.local
package common

View file

@ -1,9 +1,8 @@
// Notice: this file only saves const variables for all network.
// Please run the following commands after modify this file:
//
// cp common/constants.go common/constants/constants.go.devnet
// cp common/constants.go common/constants/constants.go.testnet
// cp common/constants.go common/constants/constants.go.local
// cp common/constants.go common/constants/constants.go.testnet
// cp common/constants.go common/constants/constants.go.devnet
// cp common/constants.go common/constants/constants.go.local
package common

View file

@ -642,6 +642,8 @@ func (c *ChainConfig) Description() string {
banner += fmt.Sprintf(" - Shanghai: %-8v\n", shanghaiBlock)
banner += fmt.Sprintf(" - Eip1559: %-8v\n", eip1559Block)
banner += fmt.Sprintf(" - Cancun: %-8v\n", cancunBlock)
banner += fmt.Sprintf(" - TIPUpgradeReward: %-8v\n", common.TIPUpgradeReward)
banner += fmt.Sprintf(" - TIPEpochHalving: %-8v\n", common.TIPEpochHalving)
banner += fmt.Sprintf(" - Engine: %v", engine)
return banner
}