Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

Make sure UUID is in trackers in Responder::get_outdated_trackers #300

Open
sr-gi opened this issue Sep 27, 2021 · 0 comments
Open

Make sure UUID is in trackers in Responder::get_outdated_trackers #300

sr-gi opened this issue Sep 27, 2021 · 0 comments

Comments

@sr-gi
Copy link
Member

sr-gi commented Sep 27, 2021

for uuid in self.gatekeeper.get_outdated_appointments(height)
if self.trackers[uuid].get("penalty_txid") in self.unconfirmed_txs

get_outdated_trackers source comes from Gatekeeper::get_outdated_appointments, which can return data that is either in the Watcher or the Responder. Data should be intersected with Responder::trackers to make sure the map is not accessed for missing items.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant