This commit is contained in:
Raven Scott
2025-12-17 22:32:07 -05:00
parent ad4784d05d
commit eb5675adb2
6 changed files with 106 additions and 61 deletions
@@ -94,6 +94,11 @@ async function handleConsensusRoutes(req, res) {
const allEntries = await getAllEntries();
await autoVoteForDomain(domain, allEntries);
// Notify other peers to recalculate consensus for this domain
if (state.sendConsensusRequest) {
state.sendConsensusRequest(domain);
}
// Broadcast update
broadcast({ type: 'update-database' });
broadcast({ type: 'update-stats' });