Skip to content

Commit 1bdb54c

Browse files
improve reputation system
1 parent 13c8212 commit 1bdb54c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nebula/addons/reputation/reputation.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1536,6 +1536,11 @@ async def recollect_model_arrival_latency(self, ure: UpdateReceivedEvent):
15361536
ure (UpdateReceivedEvent): The event data for a model update.
15371537
"""
15381538
(decoded_model, weight, source, round_num, local) = await ure.get_event_data()
1539+
1540+
# Exclude the node itself from the calculation
1541+
if source == self._addr:
1542+
return
1543+
15391544
current_time = time.time()
15401545
current_round = round_num
15411546

0 commit comments

Comments
 (0)