diff --git a/etherlink/CHANGES_NODE.md b/etherlink/CHANGES_NODE.md index a3714c22eb02fa861b9a7ef3e07b969a02175864..f855d2b1b3de2c78d92c2b838109204f0b14e1dc 100644 --- a/etherlink/CHANGES_NODE.md +++ b/etherlink/CHANGES_NODE.md @@ -7,6 +7,11 @@ - The default snapshot filename has been changed from `evm-snapshot--` to `evm--snapshot--`. (!16946) +- When an explicit snapshot filename is omitted, `snapshot export` will append + `.gz` to compressed snapshots and will not add any file extension to + uncompressed snapshots. Previously, the node was not adding any extension to + compressed snapshots, and was appending `.uncompressed` to uncompressed + snapshots. (!16957) ### Configuration changes diff --git a/etherlink/bin_node/lib_dev/snapshots.ml b/etherlink/bin_node/lib_dev/snapshots.ml index 45750b9fda6ed9767122e4830d5ec2e1a40d68a8..df6a38271f03c9af65a08bcf280a5073d237fa14 100644 --- a/etherlink/bin_node/lib_dev/snapshots.ml +++ b/etherlink/bin_node/lib_dev/snapshots.ml @@ -233,8 +233,9 @@ let export ?snapshot_file ~compression ~data_dir () = match (snapshot_file, compression) with | Some f, After -> f ^ ".uncompressed" | Some f, (No | On_the_fly) -> f - | None, On_the_fly -> default_snapshot_file - | None, (No | After) -> default_snapshot_file ^ ".uncompressed" + | None, On_the_fly -> default_snapshot_file ^ ".gz" + | None, After -> default_snapshot_file ^ ".gz.uncompressed" + | None, No -> default_snapshot_file in let*? dest_file = interpolate_snapshot_file