Skip to content

Commit

Permalink
feat: Store v3
Browse files Browse the repository at this point in the history
  • Loading branch information
SionoiS committed Apr 24, 2024
1 parent b28207a commit c89b00a
Show file tree
Hide file tree
Showing 54 changed files with 5,617 additions and 1,586 deletions.
4 changes: 2 additions & 2 deletions apps/chat2/chat2.nim
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ import
../../waku/waku_lightpush/common,
../../waku/waku_lightpush/rpc,
../../waku/waku_enr,
../../waku/waku_store,
../../waku/discovery/waku_dnsdisc,
../../waku/waku_store_legacy,
../../waku/waku_node,
../../waku/node/waku_metrics,
../../waku/node/peer_manager,
Expand Down Expand Up @@ -469,7 +469,7 @@ proc processInput(rfd: AsyncFD, rng: ref HmacDrbgContext) {.async.} =
# We have a viable storenode. Let's query it for historical messages.
echo "Connecting to storenode: " & $(storenode.get())

node.mountStoreClient()
node.mountLegacyStoreClient()
node.peerManager.addServicePeer(storenode.get(), WakuStoreCodec)

proc storeHandler(response: HistoryResponse) {.gcsafe.} =
Expand Down
9 changes: 8 additions & 1 deletion tests/all_tests_waku.nim
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,16 @@ import
./waku_store/test_waku_store,
./waku_store/test_wakunode_store

# Waku legacy store test suite
import
./waku_store_legacy/test_client,
./waku_store_legacy/test_rpc_codec,
./waku_store_legacy/test_waku_store,
./waku_store_legacy/test_wakunode_store

when defined(waku_exp_store_resume):
# TODO: Review store resume test cases (#1282)
import ./waku_store/test_resume
import ./waku_store_legacy/test_resume

import
./node/test_all,
Expand Down
3 changes: 2 additions & 1 deletion tests/node/test_all.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ import
./test_wakunode_filter,
./test_wakunode_lightpush,
./test_wakunode_peer_exchange,
./test_wakunode_store
./test_wakunode_store,
./test_wakunode_legacy_store
Loading

0 comments on commit c89b00a

Please sign in to comment.