diff --git a/common/upgrade/upgrade_init.go b/common/upgrade/upgrade_init.go index 17ffc7101..2db63e61c 100644 --- a/common/upgrade/upgrade_init.go +++ b/common/upgrade/upgrade_init.go @@ -108,7 +108,7 @@ func NewMainnetUpgradeBox() *upgradeBox { }, { Name: "Version11", - Height: EndlessHeight, + Height: 101320000, Version: 11, }, { diff --git a/common/upgrade/upgrade_test.go b/common/upgrade/upgrade_test.go index 4d4bd9e62..a1d1b8b25 100644 --- a/common/upgrade/upgrade_test.go +++ b/common/upgrade/upgrade_test.go @@ -70,7 +70,7 @@ func TestMainnetUpgradeBox(t *testing.T) { }, { IsVersion11Upgrade, - EndlessHeight, + 101320000, }, { IsVersionXUpgrade, @@ -80,7 +80,7 @@ func TestMainnetUpgradeBox(t *testing.T) { for _, ele := range cases { testUpgradePoint(t, ele.fc, ele.sHeight) } - assert.Equal(t, GetLatestPoint().Version, uint32(10)) + assert.Equal(t, (int)(GetLatestPoint().Version), 11) } func TestLatestUpgradeBox(t *testing.T) {