Skip to content

Commit

Permalink
Merge pull request ethereum#109 from ethereum-optimism/chain-config-rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
protolambda authored Jul 26, 2023
2 parents 18dbad1 + d6ca293 commit 8f8af46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion fork.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def:
globs:
- "eth/state_accessor.go"
- title: API frontend
description: Format deposit and L1-cost data in transaction responses.
description: Format deposit and L1-cost data in transaction responses. Add `debug_chainConfig` API.
globs:
- "internal/ethapi/api.go"
- "rpc/errors.go"
Expand Down
4 changes: 4 additions & 0 deletions internal/ethapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -2272,6 +2272,10 @@ func (api *DebugAPI) SetHead(number hexutil.Uint64) {
api.b.SetHead(uint64(number))
}

func (api *DebugAPI) ChainConfig() *params.ChainConfig {
return api.b.ChainConfig()
}

// NetAPI offers network related RPC methods
type NetAPI struct {
net *p2p.Server
Expand Down

0 comments on commit 8f8af46

Please sign in to comment.