-
Notifications
You must be signed in to change notification settings - Fork 46
feat: Bump Cosmovisor to v1.7.1 [DEV-4874] #875
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
base: develop
Are you sure you want to change the base?
Conversation
|
||
############################################################### | ||
### Systemd configuration ### | ||
############################################################### | ||
STANDALONE_SERVICE_TEMPLATE = f"https://raw.githubusercontent.com/cheqd/cheqd-node/{DEFAULT_DEBUG_BRANCH}/installer/templates/cheqd-noded.service" | ||
COSMOVISOR_SERVICE_TEMPLATE = f"https://raw.githubusercontent.com/cheqd/cheqd-node/{DEFAULT_DEBUG_BRANCH}/installer/templates/cheqd-cosmovisor.service" | ||
COSMOVISOR_CONFIG_TEMPLATE = f"https://raw.githubusercontent.com/cheqd/cheqd-node/{DEFAULT_DEBUG_BRANCH}/installer/templates/cosmovisor-config.toml" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably need to maintain this going forward per SDK and / or Cosmovisor upgrade, correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also be mindful whether configured for mainnet or testnet as well.
Is it worth adding 2 separate recommended configuration templates?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might as well have to document this within our node-docs.
JOURNAL_TEMPLATE=f"https://raw.githubusercontent.com/cheqd/cheqd-node/{DEFAULT_DEBUG_BRANCH}/installer/templates/journald.conf" | ||
DEFAULT_STANDALONE_SERVICE_NAME = 'cheqd-noded' | ||
DEFAULT_COSMOVISOR_SERVICE_NAME = 'cheqd-cosmovisor' | ||
DEFAULT_STANDALONE_SERVICE_FILE_PATH = f"/lib/systemd/system/{DEFAULT_STANDALONE_SERVICE_NAME}.service" | ||
DEFAULT_COSMOVISOR_SERVICE_FILE_PATH = f"/lib/systemd/system/{DEFAULT_COSMOVISOR_SERVICE_NAME}.service" | ||
DEFAULT_COSMOVISOR_CONFIG_FILE_PATH = f"{DEFAULT_CHEQD_HOME_DIR}/.cheqdnode/cosmovisor/config.toml" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible document this as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Upgrading guide should suffice.
@@ -96,7 +99,7 @@ | |||
CHEQD_NODED_NODE = "tcp://localhost:26657" | |||
CHEQD_NODED_MONIKER = platform.node() | |||
CHEQD_NODED_CHAIN_ID = MAINNET_CHAIN_ID | |||
CHEQD_NODED_MINIMUM_GAS_PRICES = "50ncheq" | |||
CHEQD_NODED_MINIMUM_GAS_PRICES = "5000ncheq" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
# Replace the values for environment variables in the template file | ||
s = re.sub( | ||
r'({CHEQD_ROOT_DIR}|{DEFAULT_BINARY_NAME}|{COSMOVISOR_DAEMON_ALLOW_DOWNLOAD_BINARIES}|{COSMOVISOR_DAEMON_RESTART_AFTER_UPGRADE}|{DEFAULT_DAEMON_POLL_INTERVAL}|{DEFAULT_UNSAFE_SKIP_BACKUP}|{DEFAULT_DAEMON_RESTART_DELAY})', | ||
lambda m: {'{CHEQD_ROOT_DIR}': self.cheqd_root_dir, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great usage of lambda cases👍.
No description provided.