Skip to content

Commit

Permalink
Merge pull request #222 from stratosnet/qb-1632_apphash_diff
Browse files Browse the repository at this point in the history
Fix/Qb-1632: App hash different between build with go1.18 & go1.19
  • Loading branch information
alexstratos authored Feb 21, 2023
2 parents a54289b + 6e2bf36 commit f925a6d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
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

0 comments on commit f925a6d

Please sign in to comment.