mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-27 15:16:05 +00:00
chore: update accordingly
This commit is contained in:
parent
06799a7d21
commit
dd9a8fff63
@ -464,7 +464,9 @@ proc initAndStartApp(
|
||||
nodeBuilder.withRecord(record)
|
||||
nodeBUilder.withSwitchConfiguration(maxConnections = some(MaxConnectedPeers))
|
||||
nodeBuilder.withPeerManagerConfig(
|
||||
maxConnections = MaxConnectedPeers, relayServiceRatio = "20:130", shardAware = true
|
||||
maxConnections = MaxConnectedPeers,
|
||||
relayServiceRatio = "13.33:86.67",
|
||||
shardAware = true,
|
||||
)
|
||||
let res = nodeBuilder.withNetworkConfigurationDetails(bindIp, nodeTcpPort)
|
||||
if res.isErr():
|
||||
|
@ -64,7 +64,7 @@ proc parseRelayServiceRatio*(ratio: string): Result[(float, float), string] =
|
||||
return err("relay service ratio must be non-negative, ratio = " & $ratio)
|
||||
|
||||
let total = relayRatio + serviceRatio
|
||||
if floor(total) > 100:
|
||||
return err("Total ratio cannot be greater than 100, total =" & $total)
|
||||
if int(total) != 100:
|
||||
return err("Total ratio should be 100, total =" & $total)
|
||||
|
||||
return ok((relayRatio / 100.0, serviceRatio / 100.0))
|
||||
|
Loading…
x
Reference in New Issue
Block a user