Skip to content

Commit

Permalink
Merge pull request #467 from urbit/m/step-on-the-gas
Browse files Browse the repository at this point in the history
constants: higher default gas price
  • Loading branch information
Fang- authored May 22, 2020
2 parents baaceb6 + 398db56 commit 6f5071d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/constants.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { isDevelopment } from './flags';

const CHECK_BLOCK_EVERY_MS = isDevelopment ? 1000 : 10000;
const DEFAULT_GAS_PRICE_GWEI = 20;
const DEFAULT_GAS_PRICE_GWEI = 40;

const MIN_GALAXY = 0;
const MAX_GALAXY = 255;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/getSuggestedGasPrice.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default async function getSuggestedGasPrice(networkType) {
// more than gwei. see: https://docs.ethgasstation.info
const suggestedGasPrice = Math.ceil(json.fast / 10); // to gwei

// we don't want to charge users more than our default 20 gwei
// we don't want to charge users more than our default gwei
return Math.min(suggestedGasPrice, DEFAULT_GAS_PRICE_GWEI);
} catch (e) {
return DEFAULT_GAS_PRICE_GWEI;
Expand Down

0 comments on commit 6f5071d

Please sign in to comment.