Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/Qb-1632: App hash different between build with go1.18 & go1.19 #222

Merged
merged 2 commits into from
Feb 21, 2023
Merged
Show file tree
Hide file tree
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
7 changes: 7 additions & 0 deletions cmd/stchaind/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package main

import (
"go/doc/comment"
"os"

"github.com/cosmos/cosmos-sdk/server"
Expand All @@ -11,6 +12,12 @@ import (
stratos "github.com/stratosnet/stratos-chain/types"
)

var (
// Force to build with go1.19, because sorting algorithm has been rewritten since go1.19
// The order of sorted results will be different between go1.18 & go1.19 if the values of the compared elements are equal
doc comment.Doc
)

func main() {
registerDenoms()

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/stratosnet/stratos-chain

go 1.18
go 1.19

require (
github.com/btcsuite/btcd v0.23.4
Expand Down