Skip to content

Commit

Permalink
Problem: no batch related config for relayer
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Jun 17, 2024
1 parent 5bc61df commit b61a1c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
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

0 comments on commit b61a1c8

Please sign in to comment.