consensus/bor: added Config() to chain context

This commit is contained in:
Pratik Patil 2025-04-29 15:26:28 +05:30
parent cf3caca17c
commit c23db04a2d
No known key found for this signature in database
GPG key ID: AFDCA496554874B3

View file

@ -33,6 +33,10 @@ func (c ChainContext) GetHeader(hash common.Hash, number uint64) *types.Header {
return c.Chain.GetHeader(hash, number) 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. // callmsg implements core.Message to allow passing it as a transaction simulator.
type Callmsg struct { type Callmsg struct {
ethereum.CallMsg ethereum.CallMsg