neo-go
neo-go copied to clipboard
Properly handle blocked/unblocked committee members in Neo cache
Current Behavior
Neo committee and validators cache is being updated only if vote-related or transfer-related transactions were included into block. We don't recalculate cache if Policy blocked/unblocked some accounts.
Expected Behavior
We should recalculate Neo cache wrt Policy changes. Cache won't be as optimized as it is now, but it will work properly with this change.
This bug is not critical since committee members blocking/unblocking is not a hot path on public networks.
Cache won't be as optimized as it is now
I doubt it'll be noticeable in practice.