initial-quantum

This commit is contained in:
ariska committed 2026-10-15 11:29:40 +07:00
1 parent 813d3aa06e
commit ae1ce9673a
6924 files changed
+1908770 -17453

No files matched your search

+13 -2
View File
@@ -380,12 +380,23 @@ bool LFDB::save(nlohmann::json &record,bool notifyListeners)
void LFDB::eraseNetwork(const uint64_t networkId)
{
// TODO
nlohmann::json network, nullJson;
get(networkId, network);
_networkChanged(network, nullJson, true);
std::lock_guard<std::mutex> l(_state_l);
_state.erase(networkId);
}
void LFDB::eraseMember(const uint64_t networkId,const uint64_t memberId)
{
// TODO
nlohmann::json network, member, nullJson;
get(networkId, network, memberId, member);
_memberChanged(member, nullJson, true);
std::lock_guard<std::mutex> l(_state_l);
auto nw = _state.find(networkId);
if (nw != _state.end()) {
nw->second.members.erase(memberId);
}
}
void LFDB::nodeIsOnline(const uint64_t networkId,const uint64_t memberId,const InetAddress &physicalAddress)