fuel-block-committer icon indicating copy to clipboard operation
fuel-block-committer copied to clipboard

Pull commit interval config from contract

Open Salka1988 opened this issue 9 months ago • 0 comments

I've removed the commit_interval from our configuration. Instead, the committee will now use the interval set in the state contract directly.

  • Added BLOCKS_PER_COMMIT_INTERVAL() external view returns (uint256) function to retrieve the commit interval from the contract.
  • Extended the Contract trait with fn commit_interval(&self) -> Result<std::num::NonZeroU32>.
  • Updated code to utilize the new commit_interval function.
  • Added setters to the Config structure.

Salka1988 avatar May 22 '24 22:05 Salka1988