optimism
optimism copied to clipboard
Is there a rule in L1 contract which enforces the monotonic increase of timestamp?
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.