Skip to content

Light client rpc #3720

Closed
pawanjay176 wants to merge 9 commits intosigp:unstablefrom
pawanjay176:lightclient-server-1
Closed

Light client rpc #3720
pawanjay176 wants to merge 9 commits intosigp:unstablefrom
pawanjay176:lightclient-server-1

Conversation

@pawanjay176
Copy link
Member

Issue Addressed

Continuation to #3711
Can be cherry picked into the above PR or can be merged after

Proposed Changes

  1. Removes the UpgradeInfo trait on InboundRequest. This is likely a relic of an older libp2p version which we do not need anymore. Currently, we have OutboundRequestContainer implementing OutboundUpgrade and RPCProtocol implementing InboundUpgrade to advertise the RPC protocols we support.
  2. Make the light client related protocol support advertising dependent on the config parameter.
  3. Move the enable_light_client_server to network config instead of beacon config. @michaelsproul , sorry but I hadn't thought it out completely when you mentioned where to put the config 😅
    I feel putting it in the network config will be better because we can disable support for the protocols when we advertise it to our peers. Doing that will ensure that we don't receive any light client related network messages (rpc or gossip) into the beacon processor.

Additional info

@divagant-martian I removed the light client protocol support for OutboundRequest based on your comment here #3711 (comment)

As I understand it, we do not need to advertise protocol support when creating outbound streams because we will not be making light client requests from the beacon node (server), so it's effectively an unreachable statement.

@pawanjay176
Copy link
Member Author

Closing this as the changes have been incorporated into #3711

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants