espresso-sequencer icon indicating copy to clipboard operation
espresso-sequencer copied to clipboard

I05: Inability to reduce stateHistoryRetentionPeriod

Open alysiahuggins opened this issue 1 year ago • 1 comments

Affected Code: LightClient.sol (line 441)

Summary: The function setstateHistoryRetentionPeriod wrongly when reducing the retention period, which can lock in a large value if set by mistake.

Suggestion: Instead of reverting when the retention period decreases, updateStateHistory could be called with the last finalized state to delete the newly outdated states.

Comments: This was intentional for this version of the escape hatch but will address later.

alysiahuggins avatar Sep 26 '24 13:09 alysiahuggins