Update submodules (#873)

* Update submodules

* Fix MsgIDProvider
This commit is contained in:
Hanno Cornelius 2022-03-02 13:24:48 +01:00 committed by GitHub
parent 2972a50035
commit 06fbb875c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 13 additions and 13 deletions

@ -1 +1 @@
Subproject commit 0435e67832b6bb8dfdf0ddb102903e9d820206d2
Subproject commit 05a438414a91ae6729c6f1966358909840368e0c

@ -1 +1 @@
Subproject commit 03975dadf6fedb8beb5d1b4d4c5bec8635fd7577
Subproject commit 37a183153c071539ab870f427c09a1376ba311b9

2
vendor/nim-json-rpc vendored

@ -1 +1 @@
Subproject commit 5a281760803907f4989cacf109b516381dfbbe11
Subproject commit ad0c3fb6e07bef6a2037637a29ee841d29f9557e

@ -1 +1 @@
Subproject commit 4b8f487d2dfdd941df7408ceaa70b174cce02180
Subproject commit a12beabd2fa721407bc99492a0075ce43ad9994d

2
vendor/nim-libp2p vendored

@ -1 +1 @@
Subproject commit 07da14a7a7de467b9d5cfe46eeaba18c8de7a7e0
Subproject commit 44a7260f0754341a6ae9864d4ece5a177cb8fc2b

2
vendor/nim-metrics vendored

@ -1 +1 @@
Subproject commit 71e0f0e354e1f4c59e3dc92153989c8b723c3440
Subproject commit 858f73b7d3ae992333a7ffab35da87e3b7b81356

2
vendor/nim-stew vendored

@ -1 +1 @@
Subproject commit b464505b4dcbe2ef52d19b2cfca8f2be4ebf2c7e
Subproject commit bb705bf17b46d2c8f9bfb106d9cc7437009a2501

2
vendor/nim-stint vendored

@ -1 +1 @@
Subproject commit ddfa6c608a6c2a843d7b405f377a22703947267a
Subproject commit e656ad40d1815f618c12c7636a37e6971959aa62

2
vendor/nim-web3 vendored

@ -1 +1 @@
Subproject commit 0f82cf22f37fecd6dedf838c0c592c33d0748ab4
Subproject commit 91c998a0d488cef011e84d8a1ef3d4f83d963111

@ -1 +1 @@
Subproject commit bc4791418a3d748c6114e7219d95739ad154ecaa
Subproject commit 8425ff9e3b6adb83e226d408a5d06d31ac2a7789

View File

@ -669,12 +669,12 @@ proc mountRelay*(node: WakuNode,
# @TODO: Better error handling: CatchableError is raised by `waitFor`
{.gcsafe, raises: [Defect, InitializationError, LPError, CatchableError].} =
func msgIdProvider(m: messages.Message): seq[byte] =
proc msgIdProvider(m: messages.Message): Result[MessageID, ValidationResult] =
let mh = MultiHash.digest("sha2-256", m.data)
if mh.isOk():
return mh[].data.buffer
return ok(mh[].data.buffer)
else:
return ($m.data.hash).toBytes()
return ok(($m.data.hash).toBytes())
let wakuRelay = WakuRelay.init(
switch = node.switch,