zcash-swift-wallet-sdk icon indicating copy to clipboard operation
zcash-swift-wallet-sdk copied to clipboard

Use `ScanSummary` to reduce number of wallet balance updates

Open str4d opened this issue 5 months ago • 0 comments

The ScanSummary data exposed by https://github.com/Electric-Coin-Company/zcash-light-client-ffi/issues/113 includes the number of notes that were detected as spent or received due to scanning the range. We can use this to reduce the number of getWalletSummary FFI calls; we don't need to update the Sapling balance if no Sapling notes were spent or received.

str4d avatar Jan 25 '24 00:01 str4d