Rebased onto dev.

pull/4377/head
frozen 2 years ago committed by Casey Gardiner
parent b9f71e31c1
commit 192a701a40
  1. 6
      internal/params/config.go

@ -111,7 +111,6 @@ var (
AllowlistEpoch: big.NewInt(2), AllowlistEpoch: big.NewInt(2),
LeaderRotationEpoch: EpochTBD, LeaderRotationEpoch: EpochTBD,
LeaderRotationBlocksCount: 64, LeaderRotationBlocksCount: 64,
TesnetNinetyPercentEpoch: big.NewInt(399),
FeeCollectEpoch: EpochTBD, FeeCollectEpoch: EpochTBD,
} }
// PangaeaChainConfig contains the chain parameters for the Pangaea network. // PangaeaChainConfig contains the chain parameters for the Pangaea network.
@ -274,7 +273,6 @@ var (
AllowlistEpoch: EpochTBD, AllowlistEpoch: EpochTBD,
LeaderRotationEpoch: big.NewInt(4), LeaderRotationEpoch: big.NewInt(4),
LeaderRotationBlocksCount: 5, LeaderRotationBlocksCount: 5,
TesnetNinetyPercentEpoch: EpochTBD,
FeeCollectEpoch: big.NewInt(5), FeeCollectEpoch: big.NewInt(5),
LeaderRotationEpoch: EpochTBD, LeaderRotationEpoch: EpochTBD,
LeaderRotationBlocksCount: 5, LeaderRotationBlocksCount: 5,
@ -719,10 +717,6 @@ func (c *ChainConfig) IsLeaderRotation(epoch *big.Int) bool {
return isForked(c.LeaderRotationEpoch, epoch) return isForked(c.LeaderRotationEpoch, epoch)
} }
func (c *ChainConfig) IsTestnetNinetyPercent(epoch *big.Int) bool {
return isForked(c.TesnetNinetyPercentEpoch, epoch) && c == TestnetChainConfig
}
// IsFeeCollectEpoch determines whether Txn Fees will be collected into the community-managed account. // IsFeeCollectEpoch determines whether Txn Fees will be collected into the community-managed account.
func (c *ChainConfig) IsFeeCollectEpoch(epoch *big.Int) bool { func (c *ChainConfig) IsFeeCollectEpoch(epoch *big.Int) bool {
return isForked(c.FeeCollectEpoch, epoch) return isForked(c.FeeCollectEpoch, epoch)

Loading…
Cancel
Save