Skip to content

Commit

Permalink
squash; kick le net
Browse files Browse the repository at this point in the history
  • Loading branch information
dr7ana committed Oct 24, 2024
1 parent d236b46 commit 33aeb94
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
8 changes: 2 additions & 6 deletions llarp/contact/client_contact.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,8 @@ namespace llarp
TCP2QUIC = 1 << 5,
};

/** TODO:
- LocalCC
- holds the derived Ed25519PrivateData
- RemoteCC:
*/
// TESTNET:
inline static constexpr auto CC_PUBLISH_INTERVAL{5min};

/** ClientContact
On the wire we encode the data as a dict containing:
Expand Down
2 changes: 1 addition & 1 deletion llarp/dht/node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace llarp::dht

CCNode(EncryptedClientContact other) : client_contact{std::move(other)}, ID{client_contact.blinded_pubkey} {}

nlohmann::json ExtractStatus() const { return nlohmann::json{{"key", client_contact.key()}}; }
nlohmann::json ExtractStatus() const { return nlohmann::json{{"key", client_contact.key().to_string()}}; }

bool operator<(const CCNode& other) const { return client_contact.signed_at < other.client_contact.signed_at; }
};
Expand Down
2 changes: 1 addition & 1 deletion llarp/handlers/session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ namespace llarp::handlers
{
log::debug(logcat, "Starting ClientContact publish ticker...");
_cc_publisher = _router.loop()->call_every(
path::DEFAULT_LIFETIME,
CC_PUBLISH_INTERVAL,
[this]() {
log::info(logcat, "Updating and publishing ClientContact...");
update_and_publish_localcc(get_current_client_intros());
Expand Down

0 comments on commit 33aeb94

Please sign in to comment.