Skip to content

Commit

Permalink
fix(agoric-cli): upgrade empty minimum-gas-prices to 0urun
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Aug 16, 2021
1 parent 73573a2 commit 1b2f6ff
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/agoric-cli/lib/chain-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const STAKING_DENOM = 'ubld';
export const STAKING_MAX_VALIDATORS = 150;

export const GOV_DEPOSIT_COINS = [{ amount: '1000000', denom: MINT_DENOM }];
export const DEFAULT_MINIMUM_GAS_PRICES = `0${CENTRAL_DENOM}`;

// Can't beat the speed of light, we need 600ms round trip time for the other
// side of Earth, and multiple round trips per block.
Expand Down Expand Up @@ -39,6 +40,11 @@ export function finishCosmosApp({
app.api['enabled-unsafe-cors'] = true;
}

if (!app['minimum-gas-prices']) {
// Set the default, to prevent a warning if there is an empty string.
app['minimum-gas-prices'] = DEFAULT_MINIMUM_GAS_PRICES;
}

// Offset the GRPC listener from our rpc port.
app.grpc.address = `0.0.0.0:${rpcPort +
DEFAULT_GRPC_PORT -
Expand Down

0 comments on commit 1b2f6ff

Please sign in to comment.