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

Problem: no batch related config for relayer #134

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
- [#121](https://github.com/crypto-com/pystarport/pull/121), [#122](https://github.com/crypto-com/pystarport/pull/122), [#125](https://github.com/crypto-com/pystarport/pull/125) Support sdk 0.50.
- [#127](https://github.com/crypto-com/pystarport/pull/127) Support adding new key when patching config
- [#128](https://github.com/crypto-com/pystarport/pull/128) fix wrong description on empty flag when create validator and align flags for edit validator.
- [#134](https://github.com/crypto-com/pystarport/pull/134) add batch related config for relayer

*Feb 7, 2023*

Expand Down
5 changes: 4 additions & 1 deletion pystarport/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -1120,6 +1120,8 @@ def relayer_chain_config_rly(data_dir, chain, relayer_chains_config):
denom = gas_price.get("denom", "basecro")
prices = f"{price}{denom}"
precompiled = chain_config.get("precompiled_contract_address", "")
broadcast_mode = chain_config.get("broadcast-mode", "batch")
max_msg_num = chain_config.get("max_msg_num", 0)
return {
"type": "cosmos",
"value": {
Expand All @@ -1145,7 +1147,8 @@ def relayer_chain_config_rly(data_dir, chain, relayer_chains_config):
"coin-type": chain.get("coin-type", 118),
"precompiled-contract-address": precompiled,
"signing-algorithm": "",
"broadcast-mode": "batch",
"broadcast-mode": broadcast_mode,
"max-msg-num": max_msg_num,
"min-loop-duration": "0s",
},
}
Expand Down
Loading