fuel-block-committer
fuel-block-committer copied to clipboard
Pull commit interval config from contract
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.