File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ toolchain go1.21.6
7
7
require (
8
8
github.com/SundaeSwap-finance/kugo v1.0.5
9
9
github.com/SundaeSwap-finance/ogmigo/v6 v6.0.0-20231128043329-e8ced51013a1
10
- github.com/blinklabs-io/gouroboros v0.100 .0
10
+ github.com/blinklabs-io/gouroboros v0.101 .0
11
11
github.com/gen2brain/beeep v0.0.0-20230602101333-f384c29b62dd
12
12
github.com/gin-gonic/gin v1.10.0
13
13
github.com/kelseyhightower/envconfig v1.4.0
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ github.com/SundaeSwap-finance/ogmigo/v6 v6.0.0-20231128043329-e8ced51013a1 h1:Lf
10
10
github.com/SundaeSwap-finance/ogmigo/v6 v6.0.0-20231128043329-e8ced51013a1 /go.mod h1:CsDGcgbkKoz6S4h0RJ30go7oXG+KhGE2KLhBpRFnEqA =
11
11
github.com/aws/aws-sdk-go v1.48.7 h1:gDcOhmkohlNk20j0uWpko5cLBbwSkB+xpkshQO45F7Y =
12
12
github.com/aws/aws-sdk-go v1.48.7 /go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk =
13
- github.com/blinklabs-io/gouroboros v0.100 .0 h1:f1M0AA+Zi4YC4sbR0gJBOaMyKTClRTNY894r4Lm7TDk =
14
- github.com/blinklabs-io/gouroboros v0.100 .0 /go.mod h1:otpDPTJTU/EVt3J4axaJAA1gF/0UtalSdVxVqXK8Zuk =
13
+ github.com/blinklabs-io/gouroboros v0.101 .0 h1:+5+C76cgyWNlFInp2HQpaGpiUSVt6bH/fUSDSo3VEaw =
14
+ github.com/blinklabs-io/gouroboros v0.101 .0 /go.mod h1:otpDPTJTU/EVt3J4axaJAA1gF/0UtalSdVxVqXK8Zuk =
15
15
github.com/blinklabs-io/ouroboros-mock v0.3.4 h1:codPfiI5vLeD6YdhKL5VwYSzy2N3Dsgx6xjcLsqFaJQ =
16
16
github.com/blinklabs-io/ouroboros-mock v0.3.4 /go.mod h1:e/wgG1ZYVenroN2XEMXy7DgEfdmP7KXVRHIQKuh8E/0 =
17
17
github.com/buger/jsonparser v1.1.1 h1:2PnMjfWD7wBILjqQbt530v576A/cAbQvEW9gGIpYMUs =
Original file line number Diff line number Diff line change @@ -169,18 +169,19 @@ func (c *ChainSync) setupConnection() error {
169
169
var useNtn bool
170
170
// Lookup network by name, if provided
171
171
if c .network != "" {
172
- network := ouroboros .NetworkByName (c .network )
173
- if network == ouroboros . NetworkInvalid {
172
+ network , ok := ouroboros .NetworkByName (c .network )
173
+ if ! ok {
174
174
return fmt .Errorf ("unknown network: %s" , c .network )
175
175
}
176
176
c .networkMagic = network .NetworkMagic
177
177
// If network has well-known public root address/port, use those as our dial default
178
- if network .PublicRootAddress != "" && network .PublicRootPort > 0 {
178
+ if len (network .BootstrapPeers ) > 0 {
179
+ peer := network .BootstrapPeers [0 ]
179
180
c .dialFamily = "tcp"
180
181
c .dialAddress = fmt .Sprintf (
181
182
"%s:%d" ,
182
- network . PublicRootAddress ,
183
- network . PublicRootPort ,
183
+ peer . Address ,
184
+ peer . Port ,
184
185
)
185
186
useNtn = true
186
187
}
You can’t perform that action at this time.
0 commit comments