codex-storage / codex-contracts-eth

Ethereum smart contracts for Codex
Other
5 stars 9 forks source link

fix: reset missed counter when slot is freed #48

Closed AuHau closed 1 year ago

AuHau commented 1 year ago

When a slot is freed after the host misses too many proofs, the "missed proofs counter" is not reset, and hence the new host that fills the freed slot will have a non-zero "missed proofs counter". While this does not impact functionality as the logic uses modulo in the implementation, if somebody queries the missingProofs() method directly, he would be surprised with the number he would potentially get.