mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
Unl change announcement to connected users. (#224)
Introduced json and bson messages for unl list announcement. When the unl set is modified send a json or bson unl list message (according to the user protocol) to all the connected users.
This commit is contained in:
@@ -111,8 +111,12 @@ namespace unl
|
||||
}
|
||||
|
||||
// Update the is_unl flag of peer sessions.
|
||||
// Broadcast changed unl list to all the connected users.
|
||||
if (is_unl_list_changed)
|
||||
{
|
||||
p2p::update_unl_connections();
|
||||
usr::announce_unl_list(list);
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace unl
|
||||
|
||||
Reference in New Issue
Block a user