Closed fasmat closed 9 months ago
Attention: Patch coverage is 38.46154%
with 8 lines
in your changes are missing coverage. Please review.
Project coverage is 74.3%. Comparing base (
3cd36cc
) to head (61f0fbc
).
Files | Patch % | Lines |
---|---|---|
initialization/metadata.go | 28.5% | 5 Missing :warning: |
initialization/diskstate.go | 25.0% | 3 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Part of https://github.com/spacemeshos/go-spacemesh/issues/5089
Closes #219
This updates
postcli
with the changes for multi-smeshing setup.postcli
now stores a generated key inidentity.key
instead ofkey.bin
and informs the user that they have to copy the file to thedatadir
of the nodeidentities.key
is checked to be compatible with theNodeID
in thepostdata_metadata.json
file (only if both files are present-id
is checked against both theidentities.key
file andNodeID
inpostdata_metadata.json
and user has to confirm a warning that providing a mismatched value potentially corrupts their data.-numUnits
has to be set ifpostdata_metadata.json
cannot be found. Ifpostdata_metadata.json
is present the value will be read from there. If the provided value does not match the value in thepostdata_metadata.json
file the user has to confirm that they want to continue and is informed that providing a lower value will delete data.-commitmentAtxId
has to be set ifpostdata_metadata.json
cannot be found. Ifpostdata_metadata.json
is present the value will be read from there. If the provided value does not match the value in thepostdata_metadata.json
file the user has to confirm that they want to continue and is informed that providing a wrong value can corrupt their data.provider
has to be setlabelsPerUnit
andscryptN
trigger a warning if set and do not match mainnet values. User has to confirm that this will generate data that is not compatible with mainnet.log.Print
andlog.Fatal
instead offmt.Println