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:
@@ -48,6 +48,14 @@ namespace msg::usrmsg
|
||||
busrmsg::create_contract_output_container(msg, outputs, hash_root, unl_sig, lcl_seq_no, lcl);
|
||||
}
|
||||
|
||||
void usrmsg_parser::create_unl_list_container(std::vector<uint8_t> &msg, const ::std::set<std::string> &unl_list) const
|
||||
{
|
||||
if (protocol == util::PROTOCOL::JSON)
|
||||
jusrmsg::create_unl_list_container(msg, unl_list);
|
||||
else
|
||||
busrmsg::create_unl_list_container(msg, unl_list);
|
||||
}
|
||||
|
||||
int usrmsg_parser::parse(std::string_view message)
|
||||
{
|
||||
if (protocol == util::PROTOCOL::JSON)
|
||||
|
||||
Reference in New Issue
Block a user