optimism icon indicating copy to clipboard operation
optimism copied to clipboard

Is there a rule in L1 contract which enforces the monotonic increase of timestamp?

Open NIC619 opened this issue 3 years ago • 0 comments

Describe the bug In CTC.appendSequencerBatch, it seems that for the transactions sent by sequencer, timestamp is simply taken from the value provided by the sequencer. If sequencer accidentally or maliciously provide timestamps breaking the assumption that timestamp should be monotonically increasing, dApps relying on this assumption will be in trouble.

Expected behavior When appending new transactions, their timestamp should be checked by the contract to make sure timestamp is monotonically increased.

NIC619 avatar Jun 22 '22 06:06 NIC619