Skip to content

Commit

Permalink
feat(protocol): no longer delete commit records (#13152)
Browse files Browse the repository at this point in the history
  • Loading branch information
dantaik authored Feb 15, 2023
1 parent 4f7ab64 commit edbdd3d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/protocol/contracts/L1/libs/LibProposing.sol
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ library LibProposing {

if (state.commits[msg.sender][commitSlot] == hash)
revert L1_COMMITTED();

state.commits[msg.sender][commitSlot] = hash;

emit BlockCommitted({
Expand Down Expand Up @@ -235,12 +236,6 @@ library LibProposing {
commitHash: commitHash
})
) revert L1_NOT_COMMITTED();

if (meta.commitSlot == 0) {
// Special handling of slot 0 for refund; non-zero slots
// are supposed to managed by node software for reuse.
delete state.commits[msg.sender][meta.commitSlot];
}
}

function _validateMetadata(
Expand Down

0 comments on commit edbdd3d

Please sign in to comment.