Minimal accounting state PoC (#278)

* Add basic WakuSwap type and init

* Mount swap protocol and keep accounting state

* Flags off by default
This commit is contained in:
Oskar Thorén
2020-11-18 20:45:51 +08:00
committed by GitHub
parent e68fe50bc1
commit 010408aadb
5 changed files with 57 additions and 8 deletions
+5
View File
@@ -213,6 +213,11 @@ proc processInput(rfd: AsyncFD, rng: ref BrHmacDrbgContext) {.async.} =
echo &"{payload}"
info "Hit store handler"
# TODO Use same flag as wakunode
# To be fixed here: https://github.com/status-im/nim-waku/issues/271
if false:
node.mountSwap()
await node.query(HistoryQuery(topics: @[DefaultContentTopic]), storeHandler)
if conf.filternode != "":