[go: up one dir, main page]

Relax snapshot import history mode check

Fixes: #1958 (closed)

This MR removes the check of the number of additional cycle while importing a snapshot. This allows users to import a snapshot into a data directory configured with any number of additional cycles.

Manually testing the MR

./tezos-node config init --network sandbox --data-dir ./import --history-mode full:42

then

./octez-node snapshot import snapshot.file --data-dir ./import

Should work.

Before that, it was leading to

Oct 24 15:01:16.297 - node.main: cleaning up directory "./import" after failure.
octez-node: Error:
              The history mode contained in the snapshot file (Full mode + 1 extra cycles) is not consistent with the one configured in the targeted data directory (Full mode + 42 extra cycles). Please check your configuration file.

Checklist

  • Document the interface of any function added or modified (see the coding guidelines)
  • Document any change to the user interface, including configuration parameters (see node configuration)
  • Provide automatic testing (see the testing guide).
  • For new features and bug fixes, add an item in the appropriate changelog (docs/protocols/alpha.rst for the protocol and the environment, CHANGES.rst at the root of the repository for everything else).
  • Select suitable reviewers using the Reviewers field below.
  • Select as Assignee the next person who should take action on that MR

Merge request reports

Loading