spacemeshos / post

Spacemesh POST protocol implementation
MIT License
19 stars 20 forks source link

postcli should never delete existing postdata files #236

Closed lrettig closed 1 year ago

lrettig commented 1 year ago

As an extension to #219: if you run postcli on an existing data dir that contains more than the default number of files, and you don't explicitly pass -numUnits, it'll actually erase existing postdata files. This is extraordinarily error prone; it should not erase existing files!