Skip to content

Commit

Permalink
add block argument to export snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
fraidev committed Dec 8, 2023
1 parent 3578ed6 commit b42cbfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/photographer/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func NewSnapshotExec(snapshotsPath, octezNodePath, tezosPath string) *SnapshotEx

func (s *SnapshotExec) CreateSnapshot(historyMode snapshot.HistoryModeType) {
log.Println("Creating snapshot.")
script := "mkdir -p " + s.snapshotsPath + " && cd " + s.snapshotsPath + " && " + s.octezNodeBinPath + " snapshot export --data-dir " + s.tezosPath + "/data"
script := "mkdir -p " + s.snapshotsPath + " && cd " + s.snapshotsPath + " && " + s.octezNodeBinPath + " snapshot export --block head~10 --data-dir " + s.tezosPath + "/data"

if historyMode == snapshot.ROLLING {
script = script + " --rolling"
Expand Down

0 comments on commit b42cbfb

Please sign in to comment.