mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Reverse connections in adnl (#545)
Co-authored-by: SpyCheese <mikle98@yandex.ru>
This commit is contained in:
parent
7754b3615e
commit
fcf59b4eb5
14 changed files with 489 additions and 12 deletions
|
@ -101,6 +101,10 @@ class DhtMember : public Dht {
|
|||
virtual void get_self_node(td::Promise<DhtNode> promise) = 0;
|
||||
|
||||
virtual PrintId print_id() const = 0;
|
||||
|
||||
static DhtKey get_reverse_connection_key(adnl::AdnlNodeIdShort node) {
|
||||
return DhtKey{node.pubkey_hash(), "address", 0};
|
||||
}
|
||||
};
|
||||
|
||||
inline td::StringBuilder &operator<<(td::StringBuilder &sb, const DhtMember::PrintId &id) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue