We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae8a49c commit ba84f32Copy full SHA for ba84f32
x/node/migrations/migrator.go
@@ -1,6 +1,8 @@
1
package migrations
2
3
import (
4
+ "net"
5
+ "net/url"
6
"time"
7
8
"github.com/cosmos/cosmos-sdk/codec"
@@ -86,11 +88,18 @@ func (k *Migrator) migrateNodes(ctx sdk.Context) {
86
88
panic(err)
87
89
}
90
91
+ remoteURL, err := url.ParseRequestURI(item.RemoteURL)
92
+ if err != nil {
93
+ panic(err)
94
+ }
95
+
96
+ remoteAddr := net.JoinHostPort(remoteURL.Hostname(), remoteURL.Port())
97
98
node := v3.Node{
99
Address: item.Address,
100
GigabytePrices: gigabytePrices,
101
HourlyPrices: hourlyPrices,
- RemoteAddrs: []string{item.RemoteURL},
102
+ RemoteAddrs: []string{remoteAddr},
103
InactiveAt: item.InactiveAt,
104
Status: item.Status,
105
StatusAt: item.StatusAt,
0 commit comments