diff --git a/src/lib_smart_rollup_node/snapshots.ml b/src/lib_smart_rollup_node/snapshots.ml index 0d8bf9c3f95ebe727a53050ea09aeb7fb7a336e9..bd0fbdb014c9fc7ccddcfcd91d6caf8d48b5180c 100644 --- a/src/lib_smart_rollup_node/snapshots.ml +++ b/src/lib_smart_rollup_node/snapshots.ml @@ -639,8 +639,7 @@ let post_export_checks ~snapshot_file = snapshot_metadata ~dest -let operator_local_file_regexp = - Re.Str.regexp "^storage/\\(commitments_published_at_level.*\\|lpc$\\)" +let operator_local_file_regexp = Re.Str.regexp "^storage/lpc$" let snapshotable_files_regexp = Re.Str.regexp diff --git a/src/proto_017_PtNairob/lib_sc_rollup_node/daemon_helpers.ml b/src/proto_017_PtNairob/lib_sc_rollup_node/daemon_helpers.ml index c974a66a962dd0eb872a8a1dbdefcaad08617fd9..ae7c7a096d7d09322be8a1534f7b3d13e36f04e8 100644 --- a/src/proto_017_PtNairob/lib_sc_rollup_node/daemon_helpers.ml +++ b/src/proto_017_PtNairob/lib_sc_rollup_node/daemon_helpers.ml @@ -161,18 +161,13 @@ let process_included_l1_operation (type kind) (node_ctxt : Node_context.rw) let their_commitment_hash = Sc_rollup_proto_types.Commitment_hash.to_octez their_commitment_hash in - let* known_commitment = - Node_context.commitment_exists node_ctxt their_commitment_hash - in let* () = - if not known_commitment then return_unit - else - Node_context.register_published_commitment - node_ctxt - (Sc_rollup_proto_types.Commitment.to_octez their_commitment) - ~first_published_at_level:(Raw_level.to_int32 published_at_level) - ~level:head.Layer1.level - ~published_by_us:false + Node_context.register_published_commitment + node_ctxt + (Sc_rollup_proto_types.Commitment.to_octez their_commitment) + ~first_published_at_level:(Raw_level.to_int32 published_at_level) + ~level:head.Layer1.level + ~published_by_us:false in (* An accuser node will publish its commitment if the other one is refutable. *) diff --git a/src/proto_018_Proxford/lib_sc_rollup_node/daemon_helpers.ml b/src/proto_018_Proxford/lib_sc_rollup_node/daemon_helpers.ml index a1106f5a0b6ef44b05714596bc4602dbd6054cab..c4f9e00439bc8eb73c608d2774e75698ce3bcc16 100644 --- a/src/proto_018_Proxford/lib_sc_rollup_node/daemon_helpers.ml +++ b/src/proto_018_Proxford/lib_sc_rollup_node/daemon_helpers.ml @@ -162,18 +162,13 @@ let process_included_l1_operation (type kind) ~catching_up {published_at_level; staked_hash = their_commitment_hash; _} ) -> (* Commitment published by someone else *) (* We first register the publication information *) - let* known_commitment = - Node_context.commitment_exists node_ctxt their_commitment_hash - in let* () = - if not known_commitment then return_unit - else - Node_context.register_published_commitment - node_ctxt - (Sc_rollup_proto_types.Commitment.to_octez their_commitment) - ~first_published_at_level:(Raw_level.to_int32 published_at_level) - ~level:head.Layer1.level - ~published_by_us:false + Node_context.register_published_commitment + node_ctxt + (Sc_rollup_proto_types.Commitment.to_octez their_commitment) + ~first_published_at_level:(Raw_level.to_int32 published_at_level) + ~level:head.Layer1.level + ~published_by_us:false in (* An accuser node will publish its commitment if the other one is refutable. *) diff --git a/src/proto_019_PtParisB/lib_sc_rollup_node/daemon_helpers.ml b/src/proto_019_PtParisB/lib_sc_rollup_node/daemon_helpers.ml index 50208c2472e8f5a72f9ef09d0380b0b850338a71..8a0da88b0c8a1c131ea7bc5016c47f8332e612c2 100644 --- a/src/proto_019_PtParisB/lib_sc_rollup_node/daemon_helpers.ml +++ b/src/proto_019_PtParisB/lib_sc_rollup_node/daemon_helpers.ml @@ -136,18 +136,13 @@ let process_included_l1_operation (type kind) ~catching_up {published_at_level; staked_hash = their_commitment_hash; _} ) -> (* Commitment published by someone else *) (* We first register the publication information *) - let* known_commitment = - Node_context.commitment_exists node_ctxt their_commitment_hash - in let* () = - if not known_commitment then return_unit - else - Node_context.register_published_commitment - node_ctxt - (Sc_rollup_proto_types.Commitment.to_octez their_commitment) - ~first_published_at_level:(Raw_level.to_int32 published_at_level) - ~level:head.Layer1.level - ~published_by_us:false + Node_context.register_published_commitment + node_ctxt + (Sc_rollup_proto_types.Commitment.to_octez their_commitment) + ~first_published_at_level:(Raw_level.to_int32 published_at_level) + ~level:head.Layer1.level + ~published_by_us:false in (* An accuser node will publish its commitment if the other one is refutable. *) diff --git a/src/proto_020_PsParisC/lib_sc_rollup_node/daemon_helpers.ml b/src/proto_020_PsParisC/lib_sc_rollup_node/daemon_helpers.ml index 50208c2472e8f5a72f9ef09d0380b0b850338a71..8a0da88b0c8a1c131ea7bc5016c47f8332e612c2 100644 --- a/src/proto_020_PsParisC/lib_sc_rollup_node/daemon_helpers.ml +++ b/src/proto_020_PsParisC/lib_sc_rollup_node/daemon_helpers.ml @@ -136,18 +136,13 @@ let process_included_l1_operation (type kind) ~catching_up {published_at_level; staked_hash = their_commitment_hash; _} ) -> (* Commitment published by someone else *) (* We first register the publication information *) - let* known_commitment = - Node_context.commitment_exists node_ctxt their_commitment_hash - in let* () = - if not known_commitment then return_unit - else - Node_context.register_published_commitment - node_ctxt - (Sc_rollup_proto_types.Commitment.to_octez their_commitment) - ~first_published_at_level:(Raw_level.to_int32 published_at_level) - ~level:head.Layer1.level - ~published_by_us:false + Node_context.register_published_commitment + node_ctxt + (Sc_rollup_proto_types.Commitment.to_octez their_commitment) + ~first_published_at_level:(Raw_level.to_int32 published_at_level) + ~level:head.Layer1.level + ~published_by_us:false in (* An accuser node will publish its commitment if the other one is refutable. *) diff --git a/src/proto_alpha/lib_sc_rollup_node/daemon_helpers.ml b/src/proto_alpha/lib_sc_rollup_node/daemon_helpers.ml index 50208c2472e8f5a72f9ef09d0380b0b850338a71..8a0da88b0c8a1c131ea7bc5016c47f8332e612c2 100644 --- a/src/proto_alpha/lib_sc_rollup_node/daemon_helpers.ml +++ b/src/proto_alpha/lib_sc_rollup_node/daemon_helpers.ml @@ -136,18 +136,13 @@ let process_included_l1_operation (type kind) ~catching_up {published_at_level; staked_hash = their_commitment_hash; _} ) -> (* Commitment published by someone else *) (* We first register the publication information *) - let* known_commitment = - Node_context.commitment_exists node_ctxt their_commitment_hash - in let* () = - if not known_commitment then return_unit - else - Node_context.register_published_commitment - node_ctxt - (Sc_rollup_proto_types.Commitment.to_octez their_commitment) - ~first_published_at_level:(Raw_level.to_int32 published_at_level) - ~level:head.Layer1.level - ~published_by_us:false + Node_context.register_published_commitment + node_ctxt + (Sc_rollup_proto_types.Commitment.to_octez their_commitment) + ~first_published_at_level:(Raw_level.to_int32 published_at_level) + ~level:head.Layer1.level + ~published_by_us:false in (* An accuser node will publish its commitment if the other one is refutable. *)