on master help sign in
Merge pull request #467 from urbit/m/step-on-the-gas

constants: higher default gas price

commit6f5071d7b6b71dd21c7a18028fe7375da15c4d0c authorFang <git@fang.io> dateFri 22 May 2020, 11:49 (6 years ago) parentbaaceb6398db56
2 files changed+2−2
src/lib/constants.js+1−1 src/lib/getSuggestedGasPrice.js+1−1
src/lib/constants.js+1−1
@@ -1,7 +1,7 @@
11import { isDevelopment } from './flags';
22
33const CHECK_BLOCK_EVERY_MS = isDevelopment ? 1000 : 10000;
4−const DEFAULT_GAS_PRICE_GWEI = 20;
4+const DEFAULT_GAS_PRICE_GWEI = 40;
55
66const MIN_GALAXY = 0;
77const MAX_GALAXY = 255;
src/lib/getSuggestedGasPrice.js+1−1
@@ -24,7 +24,7 @@ export default async function getSuggestedGasPrice(networkType) {
2424 // more than gwei. see: https://docs.ethgasstation.info
2525 const suggestedGasPrice = Math.ceil(json.fast / 10); // to gwei
2626
27− // we don't want to charge users more than our default 20 gwei
27+ // we don't want to charge users more than our default gwei
2828 return Math.min(suggestedGasPrice, DEFAULT_GAS_PRICE_GWEI);
2929 } catch (e) {
3030 return DEFAULT_GAS_PRICE_GWEI;