mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 03:49:22 +00:00
ensure set call runs smoothly
This commit is contained in:
parent
3cc0ebce26
commit
befc402057
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ class CachedElectrumXClient {
|
||||||
|
|
||||||
// ensure we are getting some overlap so we know we are not missing any
|
// ensure we are getting some overlap so we know we are not missing any
|
||||||
if (cachedSerials.isNotEmpty && newSerials.isNotEmpty) {
|
if (cachedSerials.isNotEmpty && newSerials.isNotEmpty) {
|
||||||
assert(cachedSerials.contains(newSerials.first));
|
assert(cachedSerials.intersection(newSerials).isNotEmpty);
|
||||||
}
|
}
|
||||||
|
|
||||||
cachedSerials.addAll(newSerials);
|
cachedSerials.addAll(newSerials);
|
||||||
|
|
Loading…
Reference in a new issue