Add simple fix to set farmer response timer for SP: 0 (#13655)

add simple fix to reset timer

Signed-off-by: Thomas Hein <thomashein@gmx.at>

Signed-off-by: Thomas Hein <thomashein@gmx.at>
This commit is contained in:
neurosis69 2022-11-19 02:58:03 +01:00 committed by GitHub
parent 5a74cb3581
commit 9f04cd3518
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2170,6 +2170,8 @@ class FullNode:
f"RC hash: {request.end_of_slot_bundle.reward_chain.get_hash()}, "
f"Deficit {request.end_of_slot_bundle.reward_chain.deficit}"
)
# Reset farmer response timer for sub slot (SP 0)
self.signage_point_times[0] = time.time()
# Notify full nodes of the new sub-slot
broadcast = full_node_protocol.NewSignagePointOrEndOfSubSlot(
request.end_of_slot_bundle.challenge_chain.challenge_chain_end_of_slot_vdf.challenge,