forked from snxraven/p2ns
fixes
This commit is contained in:
@@ -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' });
|
||||
|
||||
Reference in New Issue
Block a user