Skip to content

Commit

Permalink
Merge pull request #621 from vitelabs/release_v2.12.0
Browse files Browse the repository at this point in the history
Release v2.12.0
  • Loading branch information
viteshan authored Sep 13, 2022
2 parents 29c3967 + 7148096 commit 7ef8153
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion common/upgrade/upgrade_init.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func NewMainnetUpgradeBox() *upgradeBox {
},
{
Name: "Version11",
Height: EndlessHeight,
Height: 101320000,
Version: 11,
},
{
Expand Down
4 changes: 2 additions & 2 deletions common/upgrade/upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func TestMainnetUpgradeBox(t *testing.T) {
},
{
IsVersion11Upgrade,
EndlessHeight,
101320000,
},
{
IsVersionXUpgrade,
Expand All @@ -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) {
Expand Down
3 changes: 3 additions & 0 deletions rpcapi/api/ledger_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,9 @@ func GetLogs(c chain.Chain, rangeMap map[string]*Range, topics [][]types.Hash, p
if endHeight == 0 || endHeight > acc.Height {
endHeight = acc.Height
}
if startHeight > endHeight {
continue
}
for {
offset, count, finish := getHeightPage(startHeight, endHeight, 100)
if count == 0 {
Expand Down
2 changes: 1 addition & 1 deletion version/buildversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.11.3
v2.12.0
4 changes: 2 additions & 2 deletions version/buildversion.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package version
const VITE_COMMIT_VERSION = "af5b3bf85a76212304872b6c60381df5b50e6532"
const VITE_BUILD_VERSION = "v2.11.3"
const VITE_COMMIT_VERSION = "7aa7e8570af0df4b46e1dc06db930e64606e904e"
const VITE_BUILD_VERSION = "v2.12.0"

0 comments on commit 7ef8153

Please sign in to comment.