Make format

pull/1114/head
Stephen Shelton 4 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
Context::LookupIntroSetForPath(const Key_t& addr, uint64_t txid,
const llarp::PathID_t& path,
const Key_t& askpeer,
uint64_t relayOrder)
const Key_t& askpeer, uint64_t relayOrder)
{
TXOwner asker(OurKey(), txid);
TXOwner peer(askpeer, ++ids);

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

@ -15,7 +15,7 @@ namespace llarp
const PathID_t &pathid, uint64_t txid, uint64_t relayOrder,
const Key_t &addr, AbstractContext *ctx,
__attribute__((unused)) const Key_t &askpeer)
: ServiceAddressLookup(TXOwner{ctx->OurKey(), txid}, addr, ctx,
: ServiceAddressLookup(TXOwner{ctx->OurKey(), txid}, addr, ctx,
relayOrder, nullptr)
, localPath(pathid)
{

@ -9,7 +9,7 @@ namespace llarp
{
namespace dht
{
FindIntroMessage::~FindIntroMessage() = default;
FindIntroMessage::~FindIntroMessage() = default;
bool
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,
uint64_t order)
: IMessage({})
, location(addr)
, txID(txid)
, relayOrder(order)
: IMessage({}), location(addr), txID(txid), relayOrder(order)
{
tagName.Zero();
}

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

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

Loading…
Cancel
Save