ensure set call runs smoothly

This commit is contained in:
julian 2023-11-27 15:06:37 -06:00
parent 3cc0ebce26
commit befc402057

View file

@ -183,7 +183,7 @@ class CachedElectrumXClient {
// ensure we are getting some overlap so we know we are not missing any
if (cachedSerials.isNotEmpty && newSerials.isNotEmpty) {
assert(cachedSerials.contains(newSerials.first));
assert(cachedSerials.intersection(newSerials).isNotEmpty);
}
cachedSerials.addAll(newSerials);