mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-13 13:55:45 +00:00
Merge pull request #84 from status-im/fix-seq-init
Workaround for nim issue 7833
This commit is contained in:
commit
555dcd5a01
@ -255,6 +255,7 @@ proc setNetwork(conf: var NetConfiguration, network: NetworkFlags,
|
|||||||
conf.flags.excl({MainNet, MordenNet, RopstenNet, RinkebyNet, KovanNet,
|
conf.flags.excl({MainNet, MordenNet, RopstenNet, RinkebyNet, KovanNet,
|
||||||
CustomNet})
|
CustomNet})
|
||||||
conf.flags.incl(network)
|
conf.flags.incl(network)
|
||||||
|
assert(not conf.bootNodes.isNil) # Nim bug #7833
|
||||||
case network
|
case network
|
||||||
of MainNet:
|
of MainNet:
|
||||||
conf.networkId = uint(1)
|
conf.networkId = uint(1)
|
||||||
@ -402,6 +403,7 @@ proc initConfiguration(): NimbusConfiguration =
|
|||||||
result.rpc.binds = @[initTAddress("127.0.0.1:8545")]
|
result.rpc.binds = @[initTAddress("127.0.0.1:8545")]
|
||||||
|
|
||||||
## Network defaults
|
## Network defaults
|
||||||
|
result.net.bootNodes = @[] # Nim bug #7833
|
||||||
result.net.setNetwork(RopstenNet)
|
result.net.setNetwork(RopstenNet)
|
||||||
result.net.maxPeers = 25
|
result.net.maxPeers = 25
|
||||||
result.net.maxPendingPeers = 0
|
result.net.maxPendingPeers = 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user