@@ -39,10 +39,9 @@ import (
39
39
)
40
40
41
41
const (
42
- upgraderDelay = 5 * time .Minute
43
- githubAPIUrl = "https://api.github.com/repos/NethermindEth/juno/releases/latest"
44
- latestReleaseURL = "https://github.com/NethermindEth/juno/releases/latest"
45
- l1ToP2PChannelBuffer = 128
42
+ upgraderDelay * time.Minute
43
+ githubAPIUrl = "https://api.github.com/repos/NethermindEth/juno/releases/latest"
44
+ latestReleaseURLhttps ://github.com/NethermindEth/juno/releases/latest"
46
45
)
47
46
48
47
// Config is the top-level juno configuration.
@@ -182,8 +181,7 @@ func New(cfg *Config, version string) (*Node, error) { //nolint:gocyclo,funlen
182
181
rpcHandler = rpcHandler .WithFilterLimit (cfg .RPCMaxBlockScan ).WithCallMaxSteps (uint64 (cfg .RPCCallMaxSteps ))
183
182
services = append (services , rpcHandler )
184
183
185
- l1ToP2P := make (chan p2p.IPAddressRegistryEvent , l1ToP2PChannelBuffer ) //nolin:mnd
186
-
184
+ l1ToP2P := make (chan p2p.IPAddressRegistryEvent )
187
185
if ! cfg .DisableL1Verification {
188
186
// Due to mutually exclusive flag we can do the following.
189
187
if cfg .EthNode == "" {
@@ -197,6 +195,8 @@ func New(cfg *Config, version string) (*Node, error) { //nolint:gocyclo,funlen
197
195
}
198
196
services = append (services , l1Client )
199
197
rpcHandler .WithL1Client (l1Client .L1 ())
198
+ } else {
199
+ close (l1ToP2P )
200
200
}
201
201
202
202
var p2pService * p2p.Service
0 commit comments