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.
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