mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Add 10% price bump to retry attempts.
Turns out geth requires at least a 10% price bump to replace txs:
9619a61024/core/tx_pool.go (L133)
This commit is contained in:
parent
a2057a8d29
commit
c82fd990aa
@ -43,7 +43,9 @@ PendingTx.prototype.render = function () {
|
|||||||
let forceGasMin
|
let forceGasMin
|
||||||
if (lastGasPrice) {
|
if (lastGasPrice) {
|
||||||
const stripped = ethUtil.stripHexPrefix(lastGasPrice)
|
const stripped = ethUtil.stripHexPrefix(lastGasPrice)
|
||||||
forceGasMin = new BN(stripped, 16).add(MIN_GAS_PRICE_BN)
|
const lastGas = new BN(stripped, 16)
|
||||||
|
const priceBump = lastGas.divn('10')
|
||||||
|
forceGasMin = lastGas.add(priceBump)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Account Details
|
// Account Details
|
||||||
|
Loading…
Reference in New Issue
Block a user