Skip to content

Commit

Permalink
Optimization regarding the next trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
jdede committed Jul 25, 2023
1 parent b4e0c41 commit 1f292ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wolfnet/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,13 +250,13 @@ def signal_status(onoff):
if item[0] == packet.get_sequence() and item[1] == packet.get_sender():
current_packet_is_dup = True
print("DUP")

dedup_list.append((packet.get_sequence(), packet.get_sender(), get_millis()))



if packet.get_type() in (packet.TYPE_ACTOR_UNIVERSAL, ) and not nodeCfg["is_sender"] and not current_packet_is_dup:
if last_event_start + (node_config["block_time"] / 1000) > time.time():
if (last_event_start + (node_config["block_time"] / 1000) > time.time()) and (last_event_start > 0):
print("Inside Block time. Skipping event.", last_event_start + (node_config["block_time"]/1000)-time.time())
continue

Expand Down

0 comments on commit 1f292ca

Please sign in to comment.