internal/ethapi: restore net_version RPC method (#22061)
During the snap and eth refactor, the net_version rpc call was falsely deprecated. This restores the net_version RPC handler as most eth2 nodes and other software depend on it.
This commit is contained in:
committed by
GitHub
parent
61469cfeaf
commit
158f72cc0c
@ -230,7 +230,7 @@ func New(stack *node.Node, config *Config) (*Ethereum, error) {
|
||||
return nil, err
|
||||
}
|
||||
// Start the RPC service
|
||||
eth.netRPCService = ethapi.NewPublicNetAPI(eth.p2pServer)
|
||||
eth.netRPCService = ethapi.NewPublicNetAPI(eth.p2pServer, config.NetworkId)
|
||||
|
||||
// Register the backend on the node
|
||||
stack.RegisterAPIs(eth.APIs())
|
||||
|
Reference in New Issue
Block a user