refresh polling when key images added

This commit is contained in:
woodser 2025-04-17 16:15:26 -04:00 committed by GitHub
parent 58590d60df
commit 821ef16d8f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -144,6 +144,7 @@ public class XmrKeyImagePoller {
if (!keyImageGroups.containsKey(groupId)) keyImageGroups.put(groupId, new HashSet<String>());
Set<String> keyImagesGroup = keyImageGroups.get(groupId);
keyImagesGroup.addAll(keyImages);
refreshPolling();
}
}
@ -269,7 +270,6 @@ public class XmrKeyImagePoller {
// announce changes
if (!changedStatuses.isEmpty()) {
log.info("Announcing " + changedStatuses.size() + " key image spent status changes");
for (XmrKeyImageListener listener : new ArrayList<XmrKeyImageListener>(listeners)) {
listener.onSpentStatusChanged(changedStatuses);
}