mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-08 17:03:09 +00:00
proper fix for stream closed and reduce mixpool polling interval
This commit is contained in:
parent
f93b2c6972
commit
d14bfa403f
@ -43,7 +43,8 @@ EXPOSE 30303 60000 8545
|
||||
RUN apk add --no-cache libgcc pcre-dev libpq-dev \
|
||||
wget \
|
||||
iproute2 \
|
||||
python3
|
||||
python3 \
|
||||
jq
|
||||
|
||||
# Fix for 'Error loading shared library libpcre.so.3: No such file or directory'
|
||||
RUN ln -s /usr/lib/libpcre.so /usr/lib/libpcre.so.3
|
||||
|
||||
@ -98,7 +98,8 @@ proc setupAndPublish(rng: ref HmacDrbgContext, conf: LPMixConf) {.async.} =
|
||||
|
||||
let (destPeerAddr, destPeerId) = splitPeerIdAndAddr(conf.destPeerAddr)
|
||||
let (pxPeerAddr, pxPeerId) = splitPeerIdAndAddr(conf.pxAddr)
|
||||
|
||||
info "dest peer address: ", destPeerAddr = destPeerAddr, destPeerId = destPeerId
|
||||
info "peer exchange address: ", pxPeerAddr = pxPeerAddr, pxPeerId = pxPeerId
|
||||
let pxPeerInfo =
|
||||
RemotePeerInfo.init(destPeerId, @[MultiAddress.init(destPeerAddr).get()])
|
||||
node.peerManager.addServicePeer(pxPeerInfo, WakuPeerExchangeCodec)
|
||||
|
||||
2
vendor/mix
vendored
2
vendor/mix
vendored
@ -1 +1 @@
|
||||
Subproject commit bb26ba75a6d479619703e29333f48a9ac9adc753
|
||||
Subproject commit 9ff3f4cae579f50c16e6c2084ac0cf39e34b440c
|
||||
@ -325,7 +325,7 @@ proc startMixNodePoolMgr*(node: WakuNode) {.async.} =
|
||||
await sleepAsync(1.seconds)
|
||||
|
||||
# TODO: make interval configurable
|
||||
heartbeat "Updating mix node pool", 10.minutes:
|
||||
heartbeat "Updating mix node pool", 5.seconds:
|
||||
discard node.populateMixNodePool()
|
||||
|
||||
proc getMixNodePoolSize*(node: WakuNode): int =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user