Skip to content

Commit

Permalink
chore: remaing refactor in examples and tools
Browse files Browse the repository at this point in the history
  • Loading branch information
darshankabariya committed Jul 4, 2024
1 parent 90a39f7 commit 17a590b
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
1 change: 1 addition & 0 deletions examples/wakustealthcommitments/nim.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
-d:chronicles_log_level=INFO
# Results in empty output for some reason
#-d:"chronicles_enabled_topics=GossipSub:TRACE,WakuRelay:TRACE"
path = "../../"
2 changes: 1 addition & 1 deletion examples/wakustealthcommitments/node_spec.nim
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{.push raises: [].}

import
../../waku/common/logging, ../../waku/factory/[waku, networks_config, external_config]
waku/[common/logging, factory/[waku, networks_config, external_config]]
import
std/[options, strutils, os, sequtils],
stew/shims/net as stewNet,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import
stew/results,
../../waku/common/logging,
../../waku/waku_node,
../../waku/waku_rln_relay,
waku/[common/logging,
waku_node,
waku_rln_relay,],
./erc_5564_interface as StealthCommitmentFFI,
./node_spec,
./wire_spec
Expand Down
2 changes: 1 addition & 1 deletion examples/wakustealthcommitments/wire_spec.nim
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import std/[times, options]
import confutils, chronicles, chronos, stew/results

import ../../waku/waku_core, ../../waku/common/protobuf
import waku/[waku_core, common/protobuf]
import libp2p/protobuf/minprotobuf

export
Expand Down
4 changes: 1 addition & 3 deletions tools/rln_db_inspector/rln_db_inspector.nim
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ else:
import chronicles, sequtils, stew/[results]

import
../../waku/waku_rln_relay/rln,
../../waku/waku_rln_relay/conversion_utils,
../../waku/factory/external_config
waku/[waku_rln_relay/rln, waku_rln_relay/conversion_utils, factory/external_config]

logScope:
topics = "rln_db_inspector"
Expand Down
13 changes: 7 additions & 6 deletions tools/rln_keystore_generator/rln_keystore_generator.nim
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ else:
import chronicles, stew/[results], std/tempfiles

import
../../waku/waku_keystore,
../../waku/waku_rln_relay/rln,
../../waku/waku_rln_relay/conversion_utils,
../../waku/waku_rln_relay/group_manager/on_chain,
../../waku/factory/external_config
waku/[
waku_keystore,
waku_rln_relay/rln,
waku_rln_relay/conversion_utils,
waku_rln_relay/group_manager/on_chain,
factory/external_config,
]

logScope:
topics = "rln_keystore_generator"
Expand Down Expand Up @@ -91,7 +93,6 @@ proc doRlnKeystoreGenerator*(conf: WakuNodeConf) =
userMessageLimit: conf.rlnRelayUserMessageLimit,
)


let persistRes = addMembershipCredentials(
conf.rlnRelayCredPath, keystoreCred, conf.rlnRelayCredPassword, RLNAppInfo
)
Expand Down

0 comments on commit 17a590b

Please sign in to comment.