From f15cbbae9020c31e16ac43d3bf4e67de17542195 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Wed, 13 Mar 2019 23:22:14 +0200 Subject: [PATCH] Support types with custom RLP serialization in param positions --- eth/p2p/rlpx.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eth/p2p/rlpx.nim b/eth/p2p/rlpx.nim index 00babeb..bf06b5e 100644 --- a/eth/p2p/rlpx.nim +++ b/eth/p2p/rlpx.nim @@ -576,7 +576,6 @@ macro p2pProtocolImpl(name: static[string], # Int = bindSym "int" Int = ident "int" Peer = bindSym "Peer" - append = bindSym "append" createNetworkState = bindSym "createNetworkState" createPeerState = bindSym "createPeerState" finish = bindSym "finish" @@ -585,7 +584,8 @@ macro p2pProtocolImpl(name: static[string], messagePrinter = bindSym "messagePrinter" initProtocol = bindSym "initProtocol" nextMsgResolver = bindSym "nextMsgResolver" - read = bindSym "read" + append = bindSym("append", brForceOpen) + read = bindSym("read", brForceOpen) registerRequest = bindSym "registerRequest" requestResolver = bindSym "requestResolver" resolveResponseFuture = bindSym "resolveResponseFuture"