mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-03 14:33:12 +00:00
deploy: dd3b44ff974874d32a6d86486bc8fdc5dfc86012
This commit is contained in:
parent
d49b53406c
commit
17c2b5476c
@ -6,8 +6,8 @@ import
|
||||
libp2p/crypto/secp,
|
||||
nimcrypto/utils,
|
||||
eth/keys,
|
||||
../../waku/v2/protocol/waku_rln_relay/waku_rln_relay_types,
|
||||
../../waku/v2/protocol/waku_message
|
||||
|
||||
type
|
||||
Fleet* = enum
|
||||
none
|
||||
@ -241,8 +241,8 @@ type
|
||||
|
||||
rlnRelayMemIndex* {.
|
||||
desc: "(experimental) the index of node in the rln-relay group: a value between 0-99 inclusive",
|
||||
defaultValue: MembershipIndex(0)
|
||||
name: "rln-relay-membership-index" }: MembershipIndex
|
||||
defaultValue: 0
|
||||
name: "rln-relay-membership-index" }: uint
|
||||
|
||||
rlnRelayContentTopic* {.
|
||||
desc: "the pubsub topic for which rln-relay gets enabled",
|
||||
|
||||
@ -10,6 +10,8 @@ import
|
||||
../../../waku/common/utils/matterbridge_client,
|
||||
# Waku v2 imports
|
||||
libp2p/crypto/crypto,
|
||||
libp2p/errors,
|
||||
../../../waku/v2/protocol/waku_message,
|
||||
../../../waku/v2/node/wakunode2,
|
||||
# Chat 2 imports
|
||||
../chat2,
|
||||
|
||||
@ -20,6 +20,7 @@ import
|
||||
filter_api,
|
||||
admin_api,
|
||||
private_api],
|
||||
../../waku/v2/protocol/waku_message,
|
||||
../../waku/v2/protocol/waku_relay,
|
||||
../../waku/v2/protocol/waku_store,
|
||||
../../waku/v2/protocol/waku_swap/waku_swap,
|
||||
|
||||
@ -6,6 +6,7 @@ import
|
||||
testutils/unittests,
|
||||
chronicles,
|
||||
chronos,
|
||||
libp2p/peerid,
|
||||
libp2p/crypto/crypto,
|
||||
libp2p/protocols/pubsub/gossipsub
|
||||
import
|
||||
|
||||
@ -14,8 +14,10 @@ import
|
||||
libp2p/protocols/pubsub/rpc/message
|
||||
import
|
||||
../../waku/v2/protocol/waku_message,
|
||||
../../waku/v2/protocol/waku_relay,
|
||||
../../waku/v2/protocol/waku_store,
|
||||
../../waku/v2/protocol/waku_filter,
|
||||
../../waku/v2/protocol/waku_swap/waku_swap,
|
||||
../../waku/v2/node/peer_manager/peer_manager,
|
||||
../../waku/v2/node/storage/peer/waku_peer_storage,
|
||||
../../waku/v2/node/wakunode2,
|
||||
|
||||
@ -5,6 +5,8 @@ import
|
||||
chronicles,
|
||||
testutils/unittests,
|
||||
presto,
|
||||
libp2p/peerid,
|
||||
libp2p/multiaddress,
|
||||
libp2p/crypto/crypto
|
||||
import
|
||||
../../waku/v2/node/wakunode2,
|
||||
|
||||
@ -10,6 +10,7 @@ import
|
||||
libp2p/crypto/crypto,
|
||||
libp2p/protocols/pubsub/pubsub
|
||||
import
|
||||
../../waku/v2/protocol/waku_message,
|
||||
../../waku/v2/node/wakunode2,
|
||||
../../waku/v2/node/rest/[server, client, base64, utils],
|
||||
../../waku/v2/node/rest/relay/[api_types, relay_api, topic_cache]
|
||||
|
||||
@ -10,6 +10,7 @@ import
|
||||
libp2p/crypto/crypto,
|
||||
eth/keys,
|
||||
eth/p2p/discoveryv5/enr,
|
||||
../../waku/v2/protocol/waku_message,
|
||||
../../waku/v2/node/discv5/waku_discv5,
|
||||
../../waku/v2/node/wakunode2,
|
||||
../test_helpers
|
||||
|
||||
@ -7,6 +7,7 @@ import
|
||||
stew/byteutils, stew/shims/net as stewNet,
|
||||
libp2p/crypto/crypto,
|
||||
json,
|
||||
../../waku/v2/protocol/waku_message,
|
||||
../../waku/v2/protocol/waku_rln_relay/[rln, waku_rln_relay_utils,
|
||||
waku_rln_relay_types],
|
||||
../../waku/v2/node/wakunode2,
|
||||
|
||||
@ -8,6 +8,7 @@ import
|
||||
chronos,
|
||||
libp2p/crypto/crypto,
|
||||
libp2p/switch,
|
||||
../../waku/v2/protocol/waku_message,
|
||||
../../waku/v2/protocol/waku_lightpush,
|
||||
../../waku/v2/node/peer_manager/peer_manager,
|
||||
../../waku/v2/utils/peers,
|
||||
|
||||
@ -6,6 +6,8 @@ import
|
||||
metrics, metrics/chronos_httpserver,
|
||||
stew/byteutils,
|
||||
stew/shims/net as stewNet, json_rpc/rpcserver,
|
||||
libp2p/errors,
|
||||
libp2p/peerstore,
|
||||
# Waku v1 imports
|
||||
eth/[keys, p2p], eth/common/utils,
|
||||
eth/p2p/[enode, peer_pool],
|
||||
@ -16,6 +18,7 @@ import
|
||||
libp2p/nameresolving/nameresolver,
|
||||
../v2/utils/namespacing,
|
||||
../v2/utils/time,
|
||||
../v2/protocol/waku_message,
|
||||
../v2/node/wakunode2,
|
||||
# Common cli config
|
||||
./config_bridge
|
||||
|
||||
@ -8,7 +8,6 @@ import
|
||||
libp2p/crypto/secp,
|
||||
nimcrypto/utils,
|
||||
eth/keys,
|
||||
../protocol/waku_rln_relay/waku_rln_relay_types,
|
||||
../protocol/waku_message
|
||||
|
||||
export
|
||||
@ -121,8 +120,8 @@ type
|
||||
|
||||
rlnRelayMemIndex* {.
|
||||
desc: "(experimental) the index of node in the rln-relay group: a value between 0-99 inclusive",
|
||||
defaultValue: MembershipIndex(0)
|
||||
name: "rln-relay-membership-index" }: MembershipIndex
|
||||
defaultValue: 0
|
||||
name: "rln-relay-membership-index" }: uint
|
||||
|
||||
rlnRelayPubsubTopic* {.
|
||||
desc: "the pubsub topic for which rln-relay gets enabled",
|
||||
|
||||
@ -9,6 +9,8 @@ import
|
||||
../../protocol/waku_message,
|
||||
../../protocol/waku_store,
|
||||
../../protocol/waku_filter,
|
||||
../../protocol/waku_relay,
|
||||
../../protocol/waku_swap/waku_swap,
|
||||
../peer_manager/peer_manager,
|
||||
../wakunode2,
|
||||
./jsonrpc_types
|
||||
|
||||
@ -5,6 +5,7 @@ import
|
||||
chronicles,
|
||||
json_rpc/rpcserver,
|
||||
libp2p/protocols/pubsub/pubsub,
|
||||
../../protocol/waku_message,
|
||||
../wakunode2,
|
||||
./jsonrpc_types,
|
||||
./jsonrpc_utils
|
||||
|
||||
@ -20,7 +20,7 @@ import
|
||||
../protocol/waku_swap/waku_swap,
|
||||
../protocol/waku_filter,
|
||||
../protocol/waku_lightpush,
|
||||
../protocol/waku_rln_relay/[waku_rln_relay_types],
|
||||
../protocol/waku_rln_relay/waku_rln_relay_types,
|
||||
../utils/[peers, requests, wakuenr],
|
||||
./peer_manager/peer_manager,
|
||||
./storage/message/waku_store_queue,
|
||||
@ -31,10 +31,6 @@ import
|
||||
./wakunode2_types
|
||||
|
||||
export
|
||||
builders,
|
||||
waku_relay, waku_message,
|
||||
waku_swap,
|
||||
waku_rln_relay_types,
|
||||
wakunode2_types
|
||||
|
||||
when defined(rln):
|
||||
|
||||
@ -11,7 +11,8 @@ import
|
||||
./wakunode2,
|
||||
../protocol/waku_filter,
|
||||
../protocol/waku_store,
|
||||
../protocol/waku_lightpush
|
||||
../protocol/waku_lightpush,
|
||||
../protocol/waku_swap/waku_swap
|
||||
|
||||
logScope:
|
||||
topics = "wakunode.setup.metrics"
|
||||
|
||||
@ -7,6 +7,7 @@ import
|
||||
json_rpc/rpcserver
|
||||
import
|
||||
./config,
|
||||
../protocol/waku_message,
|
||||
./wakunode2,
|
||||
./jsonrpc/[admin_api,
|
||||
debug_api,
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
{.push raises: [Defect].}
|
||||
|
||||
import
|
||||
stew/results,
|
||||
chronicles,
|
||||
./storage/sqlite,
|
||||
./storage/migration/migration_types,
|
||||
./config,
|
||||
./wakunode2
|
||||
./config
|
||||
|
||||
logScope:
|
||||
topics = "wakunode.setup.migrations"
|
||||
@ -23,7 +23,7 @@ proc runMigrations*(sqliteDatabase: SqliteDatabase, conf: WakuNodeConf) =
|
||||
|
||||
info "running migration ...", migrationPath=migrationPath
|
||||
let migrationResult = sqliteDatabase.migrate(migrationPath)
|
||||
if migrationResult.isErr:
|
||||
warn "migration failed", error=migrationResult.error
|
||||
if migrationResult.isErr():
|
||||
warn "migration failed", error=migrationResult.error()
|
||||
else:
|
||||
info "migration is done"
|
||||
|
||||
@ -1065,7 +1065,7 @@ proc mountRlnRelay*(node: WakuNode, conf: WakuNodeConf|Chat2Conf, spamHandler: O
|
||||
if not conf.rlnRelayDynamic:
|
||||
info " setting up waku-rln-relay in off-chain mode... "
|
||||
# set up rln relay inputs
|
||||
let (groupOpt, memKeyPairOpt, memIndexOpt) = rlnRelayStaticSetUp(conf.rlnRelayMemIndex)
|
||||
let (groupOpt, memKeyPairOpt, memIndexOpt) = rlnRelayStaticSetUp(MembershipIndex(conf.rlnRelayMemIndex))
|
||||
if memIndexOpt.isNone:
|
||||
error "failed to mount WakuRLNRelay"
|
||||
else:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user