Skip to content

Commit

Permalink
build: update the setup_genesis.py script to set correct IBC params
Browse files Browse the repository at this point in the history
  • Loading branch information
RiccardoM committed Aug 18, 2023
1 parent ab0a48b commit c712784
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions contrib/upgrade_testnet/setup_genesis.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,15 @@
genesis['app_state']['gov']['params']['voting_period'] = '120s'
genesis['app_state']['gov']['params']['min_deposit'] = [{'amount': '10000000', 'denom': 'udaric'}]

# x/ibc
allowed_clients = chain_state['app_state']['ibc']['client_genesis']['params']['allowed_clients']
if '09-localhost' not in allowed_clients:
allowed_clients.append('09-localhost')
genesis['app_state']['ibc']['client_genesis']['params']['allowed_clients'] = allowed_clients

# -------------------------------
# --- Copy modules state over

genesis['app_state']['crisis'] = chain_state['app_state']['crisis']
genesis['app_state']['ibc'] = chain_state['app_state']['ibc']
genesis['app_state']['profiles'] = chain_state['app_state']['profiles']
Expand Down

0 comments on commit c712784

Please sign in to comment.