diff options
author | kumavis <kumavis@users.noreply.github.com> | 2018-01-09 07:05:00 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-09 07:05:00 +0800 |
commit | f42a808bea16873386afad1002dc0f0ffba06d15 (patch) | |
tree | ec9f35852ffa706293cc5f26b98c9bf80bc4d8dc | |
parent | f441bb7248d4b62d0d96897817655d348db0c29b (diff) | |
parent | 34826d18aa0acbe06d5c27013f249fa7c664d072 (diff) | |
download | tangerine-wallet-browser-f42a808bea16873386afad1002dc0f0ffba06d15.tar tangerine-wallet-browser-f42a808bea16873386afad1002dc0f0ffba06d15.tar.gz tangerine-wallet-browser-f42a808bea16873386afad1002dc0f0ffba06d15.tar.bz2 tangerine-wallet-browser-f42a808bea16873386afad1002dc0f0ffba06d15.tar.lz tangerine-wallet-browser-f42a808bea16873386afad1002dc0f0ffba06d15.tar.xz tangerine-wallet-browser-f42a808bea16873386afad1002dc0f0ffba06d15.tar.zst tangerine-wallet-browser-f42a808bea16873386afad1002dc0f0ffba06d15.zip |
Merge pull request #2899 from MetaMask/danfinlay-patch-1
Default to estimating 1 gwei for empty blocks.
-rw-r--r-- | app/scripts/metamask-controller.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index 66738db51..aa2dddf3d 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -492,7 +492,7 @@ module.exports = class MetamaskController extends EventEmitter { const { recentBlocks } = recentBlocksController.store.getState() const lowestPrices = recentBlocks.map((block) => { if (!block.gasPrices) { - return new BN(0) + return GWEI_BN } return block.gasPrices .map(hexPrefix => hexPrefix.substr(2)) |