From c23db04a2dd32d129536a03c3cc57a6c9175e811 Mon Sep 17 00:00:00 2001 From: Pratik Patil Date: Tue, 29 Apr 2025 15:26:28 +0530 Subject: [PATCH] consensus/bor: added Config() to chain context --- consensus/bor/statefull/processor.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/consensus/bor/statefull/processor.go b/consensus/bor/statefull/processor.go index b2c61b89e7..d208125c1f 100644 --- a/consensus/bor/statefull/processor.go +++ b/consensus/bor/statefull/processor.go @@ -33,6 +33,10 @@ func (c ChainContext) GetHeader(hash common.Hash, number uint64) *types.Header { return c.Chain.GetHeader(hash, number) } +func (c ChainContext) Config() *params.ChainConfig { + return c.Chain.Config() +} + // callmsg implements core.Message to allow passing it as a transaction simulator. type Callmsg struct { ethereum.CallMsg