spacemeshos / post

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

postcli should use postdata_metadata.json for default values #219

Closed reythia closed 6 months ago

reythia commented 1 year ago

Postcli now contains many functions beyond simply generating post data.

When -datadir is provided and postdata_metadata.json exists the metadata should take priority over postcli defaults. Requiring the user to supply values each time complicates things and introduces scope for error.

Where the user does provide an explicit argument to postcli which clashes with a postdata_metadata.json value a warning should be thrown as is the case with an unexpected -id argument.