From 3900bb587a9672091ae8b29821d8af9791fe3e80 Mon Sep 17 00:00:00 2001 From: julian Date: Fri, 28 Jul 2023 13:57:26 -0600 Subject: [PATCH] re enable caching of used coin serials --- lib/electrumx_rpc/cached_electrumx.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/electrumx_rpc/cached_electrumx.dart b/lib/electrumx_rpc/cached_electrumx.dart index 91b7d1bc8..8366e259f 100644 --- a/lib/electrumx_rpc/cached_electrumx.dart +++ b/lib/electrumx_rpc/cached_electrumx.dart @@ -167,8 +167,8 @@ class CachedElectrumX { Set cachedSerials = _list == null ? {} : List.from(_list).toSet(); - // startNumber is broken currently - final startNumber = 0; // cachedSerials.length; + final startNumber = + cachedSerials.length - 10; // 10 being some arbitrary buffer final serials = await electrumXClient.getUsedCoinSerials( startNumber: startNumber,