Motivation
With current protocol implementation keysOpIndex
counter is not incremented when a deposit happens. Thus it’s difficult to track used keys with off-chain monitoring services. We need an ad-hoc loop to manually refresh used keys which looks like a suboptimal workaround.
Proposed solution
We propose to call _increaseKeysOpIndex
if the number of used keys has changed during the call of assignNextSigningKeys
in contract NodeOperatorsRegistry.
Calling assignNextSigningKeys
method changes the “usedSigningKeys” properties of operators, which is responsible for the number of used and unsigned keys. Thus by explicitly calling _increaseKeysOpIndex
we can add an intrusive indicator for the off-chain listeners.
Specification
Further details and code example are provided on the LIP GitHub repo.