|
|
@ -23,7 +23,7 @@ export class ExecutionContext { |
|
|
|
this.lastBlock = null |
|
|
|
this.lastBlock = null |
|
|
|
this.blockGasLimitDefault = 4300000 |
|
|
|
this.blockGasLimitDefault = 4300000 |
|
|
|
this.blockGasLimit = this.blockGasLimitDefault |
|
|
|
this.blockGasLimit = this.blockGasLimitDefault |
|
|
|
this.currentFork = 'berlin' |
|
|
|
this.currentFork = 'london' |
|
|
|
this.mainNetGenesisHash = '0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3' |
|
|
|
this.mainNetGenesisHash = '0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3' |
|
|
|
this.customNetWorks = {} |
|
|
|
this.customNetWorks = {} |
|
|
|
this.blocks = {} |
|
|
|
this.blocks = {} |
|
|
@ -181,7 +181,7 @@ export class ExecutionContext { |
|
|
|
try { |
|
|
|
try { |
|
|
|
this.currentFork = execution.forkAt(await web3.eth.net.getId(), block.number) |
|
|
|
this.currentFork = execution.forkAt(await web3.eth.net.getId(), block.number) |
|
|
|
} catch (e) { |
|
|
|
} catch (e) { |
|
|
|
this.currentFork = 'berlin' |
|
|
|
this.currentFork = 'london' |
|
|
|
console.log(`unable to detect fork, defaulting to ${this.currentFork}..`) |
|
|
|
console.log(`unable to detect fork, defaulting to ${this.currentFork}..`) |
|
|
|
console.error(e) |
|
|
|
console.error(e) |
|
|
|
} |
|
|
|
} |
|
|
|