Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gossipsub Publish Null Reference Exception #113

Open
uink45 opened this issue Dec 2, 2024 · 0 comments
Open

Gossipsub Publish Null Reference Exception #113

uink45 opened this issue Dec 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@uink45
Copy link
Contributor

uink45 commented Dec 2, 2024

Description
When calling the Publish method in PubsubRouter, the program ends up throwing a NullReferenceException: Object reference not set to an instance of an object. error.

Steps to Reproduce
This can be reproduced by calling the Publish method in the instance of PubsubRouter.

Actual behavior
The program will throw a NullReferenceException: Object reference not set to an instance of an object. error. This error prevents publishing messages to the Gossip network and results in not adhering to the light client specification.

Expected behavior
The expected behaviour is for it to avoid throwing a NullReferenceException error and to correctly publish the message.

Setup (please complete the following information):

  • Operating System: macOS
  • Version: 1.0.0-preview.34

Additional context
Consensus layer light clients in Ethereum are required to forward the light_client_finality_update and light_client_optimistic_update objects to the network after performing validations.

Logs
Here are the error logs during the program's execution:

[00:31:27] fail: Lantern.Beacon.Networking.Gossip.GossipSubManager[0] Error when handling light client optimistic update received from gossip System.NullReferenceException: Object reference not set to an instance of an object. at Nethermind.Libp2p.Protocols.Pubsub.PubsubRouter.Publish(String topicId, Byte[] message) at Lantern.Beacon.Networking.Gossip.GossipSubManager.HandleLightClientOptimisticUpdate(Byte[] update) in /Users/multi/Documents/GitHub/Lantern.Beacon/src/Lantern.Beacon/Networking/Gossip/GossipSubManager.cs:line 152

@uink45 uink45 added the bug Something isn't working label Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant