Commit b8ee3e05 authored by Kelvin Fichter's avatar Kelvin Fichter Committed by kf

fix: add logging to the DTL when BSS HF1 is live

Adds a basic log line to the DTL when BSS HF1 is active. Will also log
when BSS HF1 is not active.
parent 2400ffc1
---
'@eth-optimism/data-transport-layer': patch
---
Add logging when BSS HF1 is active
......@@ -68,6 +68,12 @@ export class L1DataTransportService extends BaseService<L1DataTransportServiceOp
protected async _init(): Promise<void> {
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)
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