Commit 1bf4408d authored by smartcontracts's avatar smartcontracts Committed by GitHub

Merge pull request #2197 from ethereum-optimism/sc/dtl-hf-logging

fix: add logging to the DTL when BSS HF1 is live
parents 2400ffc1 b8ee3e05
---
'@eth-optimism/data-transport-layer': patch
---
Add logging when BSS HF1 is active
...@@ -68,6 +68,12 @@ export class L1DataTransportService extends BaseService<L1DataTransportServiceOp ...@@ -68,6 +68,12 @@ export class L1DataTransportService extends BaseService<L1DataTransportServiceOp
protected async _init(): Promise<void> { protected async _init(): Promise<void> {
this.logger.info('Initializing L1 Data Transport Service...') this.logger.info('Initializing L1 Data Transport Service...')
if (this.options.bssHardfork1Index !== null && this.options.bssHardfork1Index !== undefined) {
this.logger.info(`BSS HF1 is active at block: ${this.options.bssHardfork1Index}`)
} else {
this.logger.info(`BSS HF1 is not active`)
}
this.state.db = level(this.options.dbPath) this.state.db = level(this.options.dbPath)
await this.state.db.open() await this.state.db.open()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment