Make format

pull/1114/head
Stephen Shelton 5 years ago
parent 66cb30fa58
commit 63c3106db2
No known key found for this signature in database
GPG Key ID: EE4BADACCE8B631C

@ -539,8 +539,7 @@ namespace llarp
void void
Context::LookupIntroSetForPath(const Key_t& addr, uint64_t txid, Context::LookupIntroSetForPath(const Key_t& addr, uint64_t txid,
const llarp::PathID_t& path, const llarp::PathID_t& path,
const Key_t& askpeer, const Key_t& askpeer, uint64_t relayOrder)
uint64_t relayOrder)
{ {
TXOwner asker(OurKey(), txid); TXOwner asker(OurKey(), txid);
TXOwner peer(askpeer, ++ids); TXOwner peer(askpeer, ++ids);

@ -44,19 +44,18 @@ namespace llarp
/// Ask a Service Node to perform an Introset lookup for us /// Ask a Service Node to perform an Introset lookup for us
virtual void virtual void
LookupIntroSetRelayed( LookupIntroSetRelayed(const Key_t& target, const Key_t& whoasked,
const Key_t& target, const Key_t& whoasked, uint64_t whoaskedTX, uint64_t whoaskedTX, const Key_t& askpeer,
const Key_t& askpeer, uint64_t relayOrder, uint64_t relayOrder,
service::EncryptedIntroSetLookupHandler result = service::EncryptedIntroSetLookupHandler result =
service::EncryptedIntroSetLookupHandler()) = 0; service::EncryptedIntroSetLookupHandler()) = 0;
/// Directly as a Service Node for an Introset /// Directly as a Service Node for an Introset
virtual void virtual void
LookupIntroSetDirect( LookupIntroSetDirect(const Key_t& target, const Key_t& whoasked,
const Key_t& target, const Key_t& whoasked, uint64_t whoaskedTX, uint64_t whoaskedTX, const Key_t& askpeer,
const Key_t& askpeer, service::EncryptedIntroSetLookupHandler result =
service::EncryptedIntroSetLookupHandler result = service::EncryptedIntroSetLookupHandler()) = 0;
service::EncryptedIntroSetLookupHandler()) = 0;
virtual bool virtual bool
HasRouterLookup(const RouterID& target) const = 0; HasRouterLookup(const RouterID& target) const = 0;

@ -9,7 +9,7 @@ namespace llarp
{ {
namespace dht namespace dht
{ {
FindIntroMessage::~FindIntroMessage() = default; FindIntroMessage::~FindIntroMessage() = default;
bool bool
FindIntroMessage::DecodeKey(const llarp_buffer_t& k, llarp_buffer_t* val) FindIntroMessage::DecodeKey(const llarp_buffer_t& k, llarp_buffer_t* val)

@ -32,10 +32,7 @@ namespace llarp
explicit FindIntroMessage(uint64_t txid, const Key_t& addr, explicit FindIntroMessage(uint64_t txid, const Key_t& addr,
uint64_t order) uint64_t order)
: IMessage({}) : IMessage({}), location(addr), txID(txid), relayOrder(order)
, location(addr)
, txID(txid)
, relayOrder(order)
{ {
tagName.Zero(); tagName.Zero();
} }

@ -52,9 +52,8 @@ namespace llarp
void void
ServiceAddressLookup::Start(const TXOwner &peer) ServiceAddressLookup::Start(const TXOwner &peer)
{ {
parent->DHTSendTo( parent->DHTSendTo(peer.node.as_array(),
peer.node.as_array(), new FindIntroMessage(peer.txid, target, relayOrder));
new FindIntroMessage(peer.txid, target, relayOrder));
} }
void void

@ -28,9 +28,8 @@ namespace llarp
void void
TagLookup::Start(const TXOwner &peer) TagLookup::Start(const TXOwner &peer)
{ {
parent->DHTSendTo( parent->DHTSendTo(peer.node.as_array(),
peer.node.as_array(), new FindIntroMessage(target, peer.txid));
new FindIntroMessage(target, peer.txid));
} }
void void

Loading…
Cancel
Save