Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/describe location #655

Merged
merged 5 commits into from
Jun 25, 2021
Merged

Feature/describe location #655

merged 5 commits into from
Jun 25, 2021

Conversation

neacsu
Copy link
Contributor

@neacsu neacsu commented Jun 24, 2021

Give a mixnode operator the possibility to describe the location of its mixnode. Also removed the location from the init output.

mixnode/src/commands/describe.rs Outdated Show resolved Hide resolved
mixnode/src/commands/run.rs Outdated Show resolved Hide resolved
mixnode/src/commands/upgrade.rs Outdated Show resolved Hide resolved
mixnode/src/commands/upgrade.rs Outdated Show resolved Hide resolved
mixnode/src/commands/upgrade.rs Show resolved Hide resolved
mixnode/src/commands/upgrade.rs Outdated Show resolved Hide resolved
mixnode/src/commands/upgrade.rs Show resolved Hide resolved
Renaming the function to have a clear separation between different
parts of the version, especially for future patch upgrade functions.

Also switch to a Result return value for these functions, to gather
all the
```
eprintln!
print_failed_upgrade
exit(1)
```
calls in one place.

Signed-off-by: Bogdan-Ștefan Neacșu <bogdan@nymtech.net>
Removed location from the init output and added it as input in the
describe command.

Because this creates a different format of the description file, the
patch version number must also be increased.

Signed-off-by: Bogdan-Ștefan Neacșu <bogdan@nymtech.net>
Add a positive and a negative unit test for upgrading to 10.0.2.

Signed-off-by: Bogdan-Ștefan Neacșu <bogdan@nymtech.net>
This fixes the warning caused by `clippy::field-reassign-with-default`

Signed-off-by: Bogdan-Ștefan Neacșu <bogdan@nymtech.net>
- Use concrete location for example
- Removed `Location` from displayed information
- Replace tuple with a type alias
- Commit description to disk once the upgrade is finalized
- Other minor changes

Signed-off-by: Bogdan-Ștefan Neacșu <bogdan@nymtech.net>
@neacsu neacsu force-pushed the feature/describe_location branch from 1cdc0d0 to 12ddf80 Compare June 25, 2021 11:45
@neacsu neacsu merged commit 142a703 into develop Jun 25, 2021
@neacsu neacsu deleted the feature/describe_location branch June 25, 2021 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants