mirror of
https://github.com/tornadocash/tx-manager.git
synced 2024-12-04 23:05:16 +01:00
decrease default BLOCK_GAS_LIMIT
This commit is contained in:
parent
ab82b37e0d
commit
2b38927743
@ -118,7 +118,7 @@ class Transaction {
|
||||
async _prepare() {
|
||||
if (!this.config.BLOCK_GAS_LIMIT) {
|
||||
const lastBlock = await this._provider.getBlock('latest')
|
||||
this.config.BLOCK_GAS_LIMIT = lastBlock.gasLimit.toNumber()
|
||||
this.config.BLOCK_GAS_LIMIT = Math.floor(lastBlock.gasLimit.toNumber() * 0.95)
|
||||
}
|
||||
|
||||
if (!this.tx.gasLimit || this.config.ESTIMATE_GAS) {
|
||||
|
Loading…
Reference in New Issue
Block a user