iron-fish / ironfish

A novel cryptocurrency focused on privacy and accessibility.
https://ironfish.network
Mozilla Public License 2.0
963 stars 574 forks source link

WalletScanner: do not update the chain processor head unless accounts have changed #5051

Closed andiflabs closed 3 months ago

andiflabs commented 3 months ago

Summary

Instead of updating the chain processor head at every loop, do it only if the accounts in the wallet have changed (new accounts have been added, or existing accounts have been removed).

This change is a prerequisite to implement decryption parallelism.

Testing Plan

Unit tests

Documentation

N/A

Breaking Change

N/A