Closed EthanYuan closed 3 months ago
load_spv_instance
function? We can pass an argument last_accept_height: Option< usize >
to indicate the lowest accepted height.
- Please explain which issue this PR addresses? Does the cache not invalidate properly?
I wrote issue here:
- Can we handle cache invalidation in the
load_spv_instance
function? We can pass an argumentlast_accept_height: Option< usize >
to indicate the lowest accepted height.
Good idea. I've re-pushed the commit for review.
issue from
A simple idea for a fix would be to get the latest spv instance over the network and update the cache as soon as a suitable spv client does not exist in the cache.