diff --git a/.github/workflows/multi_nim.yml b/.github/workflows/multi_nim.yml index 4b52a81..3c7dd60 100644 --- a/.github/workflows/multi_nim.yml +++ b/.github/workflows/multi_nim.yml @@ -21,7 +21,7 @@ jobs: cpu: amd64 #- os: windows #cpu: i386 - branch: [version-1-2, version-1-4, version-1-6, devel] + branch: [version-1-2, version-1-6, devel] include: - target: os: linux diff --git a/.pinned b/.pinned index 3397fbb..57b4bb8 100644 --- a/.pinned +++ b/.pinned @@ -1,7 +1,7 @@ bearssl;https://github.com/status-im/nim-bearssl@#f4c4233de453cb7eac0ce3f3ffad6496295f83ab chronicles;https://github.com/status-im/nim-chronicles@#32ac8679680ea699f7dbc046e8e0131cac97d41a -chronos;https://github.com/status-im/nim-chronos@#9df76c39df254c7ff0cec6dec5c9f345f2819c91 -dnsclient;https://github.com/ba0f3/dnsclient.nim@#6647ca8bd9ffcc13adaecb9cb6453032063967db +chronos;https://github.com/status-im/nim-chronos@#266e2c0ed26b455872bccb3ddbd316815a283659 +dnsclient;https://github.com/ba0f3/dnsclient.nim@#fcd7443634b950eaea574e5eaa00a628ae029823 faststreams;https://github.com/status-im/nim-faststreams@#6112432b3a81d9db116cd5d64c39648881cfff29 httputils;https://github.com/status-im/nim-http-utils@#e88e231dfcef4585fe3b2fbd9b664dbd28a88040 json_serialization;https://github.com/status-im/nim-json-serialization@#e5b18fb710c3d0167ec79f3b892f5a7a1bc6d1a4 @@ -9,8 +9,8 @@ metrics;https://github.com/status-im/nim-metrics@#0a6477268e850d7bc98347b3875301 nimcrypto;https://github.com/cheatfate/nimcrypto@#24e006df85927f64916e60511620583b11403178 secp256k1;https://github.com/status-im/nim-secp256k1@#c7f1a37d9b0f17292649bfed8bf6cef83cf4221f serialization;https://github.com/status-im/nim-serialization@#493d18b8292fc03aa4f835fd825dea1183f97466 -stew;https://github.com/status-im/nim-stew@#f2e58ba4c8da65548c824e4fa8732db9739f6505 +stew;https://github.com/status-im/nim-stew@#23da07c9b59c0ba3d4efa7e4e6e2c4121ae5a156 testutils;https://github.com/status-im/nim-testutils@#dfc4c1b39f9ded9baf6365014de2b4bfb4dafc34 unittest2;https://github.com/status-im/nim-unittest2@#f180f596c88dfd266f746ed6f8dbebce39c824db -websock;https://github.com/status-im/nim-websock@#2424f2b215c0546f97d8b147e21544521c7545b0 +websock;https://github.com/status-im/nim-websock@#acbe30e9ca1e51dcbbfe4c552ee6f16c7eede538 zlib;https://github.com/status-im/nim-zlib@#6a6670afba6b97b29b920340e2641978c05ab4d8 \ No newline at end of file diff --git a/libp2p/protocols/pubsub/pubsub.nim b/libp2p/protocols/pubsub/pubsub.nim index 606744a..a7d7fc2 100644 --- a/libp2p/protocols/pubsub/pubsub.nim +++ b/libp2p/protocols/pubsub/pubsub.nim @@ -267,11 +267,11 @@ proc updateMetrics*(p: PubSub, rpcMsg: RPCMsg) = method rpcHandler*(p: PubSub, peer: PubSubPeer, - rpcMsg: RPCMsg): Future[void] {.base.} = + rpcMsg: RPCMsg): Future[void] {.base, async.} = ## Handler that must be overridden by concrete implementation raiseAssert "Unimplemented" -method onNewPeer(p: PubSub, peer: PubSubPeer) {.base.} = discard +method onNewPeer(p: PubSub, peer: PubSubPeer) {.base, gcsafe.} = discard method onPubSubPeerEvent*(p: PubSub, peer: PubSubPeer, event: PubSubPeerEvent) {.base, gcsafe.} = # Peer event is raised for the send connection in particular diff --git a/libp2p/protocols/secure/secure.nim b/libp2p/protocols/secure/secure.nim index c187fd2..124e1e9 100644 --- a/libp2p/protocols/secure/secure.nim +++ b/libp2p/protocols/secure/secure.nim @@ -7,6 +7,7 @@ # This file may not be copied, modified, or distributed except according to # those terms. +{.push gcsafe.} when (NimMajor, NimMinor) < (1, 4): {.push raises: [Defect].} else: diff --git a/libp2p/stream/lpstream.nim b/libp2p/stream/lpstream.nim index fb9401a..e2b7327 100644 --- a/libp2p/stream/lpstream.nim +++ b/libp2p/stream/lpstream.nim @@ -9,6 +9,7 @@ ## Length Prefixed stream implementation +{.push gcsafe.} when (NimMajor, NimMinor) < (1, 4): {.push raises: [Defect].} else: diff --git a/libp2p/upgrademngrs/upgrade.nim b/libp2p/upgrademngrs/upgrade.nim index c5733e6..c087bed 100644 --- a/libp2p/upgrademngrs/upgrade.nim +++ b/libp2p/upgrademngrs/upgrade.nim @@ -7,6 +7,7 @@ # This file may not be copied, modified, or distributed except according to # those terms. +{.push gcsafe.} when (NimMajor, NimMinor) < (1, 4): {.push raises: [Defect].} else: