mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
Remove self connection on peer discovery (#269)
* Resetting last shard syncing flags when sync is abandoned. (#268) * Remove self loopback connection when self is added by peer discovery * Resolved PR comments Co-authored-by: Savinda Senevirathne <savindadilsara@gmail.com>
This commit is contained in:
@@ -6,6 +6,8 @@ namespace p2p::self
|
||||
// Holds self messages waiting to be processed.
|
||||
moodycamel::ConcurrentQueue<std::string> msg_queue;
|
||||
|
||||
std::optional<conf::peer_ip_port> ip_port;
|
||||
|
||||
/**
|
||||
* Processes the next queued message (if any).
|
||||
* @return 0 if no messages in queue. 1 if message was processed successfully. -1 on error.
|
||||
|
||||
Reference in New Issue
Block a user