nspcc-dev / neofs-contract

NeoFS smart-contract
Other
9 stars 17 forks source link

common: ignore stale votes in TryPurgeVotes #333

Closed roman-khimov closed 1 year ago

roman-khimov commented 1 year ago

On a real healthy network we always have something there. Consider seven IRs doing something, we only need five signatures, so they're added and then dropped when we have enough of them, but excessive transactions from the other IRs still come and they will be added again into the same voting structure.

But according to the definition of blockDiff we can ignore stale votes safely (they're not counted for votes anyway).