diff --git a/llarp/path/transit_hop.cpp b/llarp/path/transit_hop.cpp index 084d8ec22..e9cbf7056 100644 --- a/llarp/path/transit_hop.cpp +++ b/llarp/path/transit_hop.cpp @@ -441,18 +441,8 @@ namespace llarp { return SendRoutingMessage(discarded, r); } - std::array tmp; - llarp_buffer_t buf{tmp}; - if (!msg.T.BEncode(&buf)) - { - llarp::LogWarn(info, " failed to transfer data message, encode failed"); - return SendRoutingMessage(discarded, r); - } - // rewind - buf.sz = buf.cur - buf.base; - buf.cur = buf.base; - // send - if (path->HandleDownstream(buf, msg.Y, r)) + // send routing message + if (path->SendRoutingMessage(msg.T, r)) { m_FlushOthers.emplace(path); return true;