1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
This commit is contained in:
Dan Finlay 2018-01-05 21:34:35 -08:00
parent 121596bfb4
commit 447682d1fb

View File

@ -489,9 +489,7 @@ module.exports = class MetamaskController extends EventEmitter {
getGasPrice () {
const { recentBlocksController } = this
console.dir(recentBlocksController)
const { recentBlocks } = recentBlocksController.store.getState()
console.dir(recentBlocks)
const lowestPrices = recentBlocks.map((block) => {
return block.transactions
.sort((a, b) => {
@ -499,7 +497,6 @@ module.exports = class MetamaskController extends EventEmitter {
})[0]
})
.map(number => number.div(GWEI_BN).toNumber())
console.dir({ lowestPrices })
return percentile(50, lowestPrices)
}