diff --git a/src/ripple/overlay/impl/ConnectAttempt.cpp b/src/ripple/overlay/impl/ConnectAttempt.cpp index d1aaaaaea..7ca3da47f 100644 --- a/src/ripple/overlay/impl/ConnectAttempt.cpp +++ b/src/ripple/overlay/impl/ConnectAttempt.cpp @@ -423,8 +423,8 @@ ConnectAttempt::processResponse (beast::http::message const& m, auto const peer = std::make_shared( std::move(ssl_bundle_), read_buf_.data(), - std::move(slot_), usage_, std::move(hello), - publicKey, id_, overlay_); + std::move(slot_), std::move(response_), + usage_, std::move(hello), publicKey, id_, overlay_); overlay_.add_active (peer); } diff --git a/src/ripple/overlay/impl/PeerImp.h b/src/ripple/overlay/impl/PeerImp.h index 533d2aa93..632fd000e 100644 --- a/src/ripple/overlay/impl/PeerImp.h +++ b/src/ripple/overlay/impl/PeerImp.h @@ -173,9 +173,10 @@ public: template PeerImp (std::unique_ptr&& ssl_bundle, Buffers const& buffers, PeerFinder::Slot::ptr&& slot, - Resource::Consumer usage, protocol::TMHello&& hello, - RippleAddress const& legacyPublicKey, id_t id, - OverlayImpl& overlay); + beast::http::message&& response, Resource::Consumer usage, + protocol::TMHello&& hello, + RippleAddress const& legacyPublicKey, id_t id, + OverlayImpl& overlay); virtual ~PeerImp(); @@ -448,9 +449,10 @@ private: template PeerImp::PeerImp (std::unique_ptr&& ssl_bundle, Buffers const& buffers, PeerFinder::Slot::ptr&& slot, - Resource::Consumer usage, protocol::TMHello&& hello, - RippleAddress const& legacyPublicKey, id_t id, - OverlayImpl& overlay) + beast::http::message&& response, Resource::Consumer usage, + protocol::TMHello&& hello, + RippleAddress const& legacyPublicKey, id_t id, + OverlayImpl& overlay) : Child (overlay) , id_ (id) , sink_ (deprecatedLogs().journal("Peer"), makePrefix(id)) @@ -473,6 +475,7 @@ PeerImp::PeerImp (std::unique_ptr&& ssl_bundle, , usage_ (usage) , fee_ (Resource::feeLightPeer) , slot_ (std::move(slot)) + , http_message_(std::move(response)) , validatorsConnection_(getApp().getValidators().newConnection(id)) { read_buffer_.commit (boost::asio::buffer_copy(read_buffer_.prepare(