codex-storage / codex-contracts-eth

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

Period multiplicator as part of the Proof's configuration #108

Open AuHau opened 1 month ago

AuHau commented 1 month ago

https://github.com/codex-storage/codex-contracts-eth/blob/master/contracts/Proofs.sol#L48

The Period multiplicator (67) in getPointer() function should be configurable as it is coupled with the downtime parameter.

We should also better understand what configuration values we will use in real deployment, because then maybe we would not even need the multiplication? I would assume that the Period should be quite long, but Mark pointed out that it should not be longer than the 256 blocks window.