Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions internal/configs/sharding/partner.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ const (

func (ps partnerSchedule) InstanceForEpoch(epoch *big.Int) Instance {
switch {
case epoch.Cmp(big.NewInt(44930)) >= 0: // one time fix for devnet shard 1 down, estimated 24 April 4:30AM UTC
return partnerV4
case epoch.Cmp(big.NewInt(2207)) >= 0: // one time fix for devnet shard 1 down, estimated 24 April 4:30AM UTC
return partnerV3_1
case params.PartnerChainConfig.IsDevnetExternalEpoch(epoch):
Expand Down Expand Up @@ -137,3 +139,12 @@ var partnerV3_1 = MustNewInstance(
hip30CollectionAddressTestnet, partnerReshardingEpoch,
PartnerSchedule.BlocksPerEpoch(),
)

var partnerV4 = MustNewInstance(
2, 20, 4, 0,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe even 0 or 1 will be okay here for the internal validators

numeric.MustNewDecFromStr("0.01"), genesis.TNHarmonyAccounts,
genesis.TNFoundationalAccounts, emptyAllowlist,
feeCollectorsDevnet[1], numeric.MustNewDecFromStr("0.25"),
hip30CollectionAddressTestnet, partnerReshardingEpoch,
PartnerSchedule.BlocksPerEpoch(),
)