diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a22e13..fc7d3fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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* diff --git a/pystarport/cluster.py b/pystarport/cluster.py index 3b29a9f..7e1bb4c 100644 --- a/pystarport/cluster.py +++ b/pystarport/cluster.py @@ -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": { @@ -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", }, }