Skip to content

WebSocket on Mainnet not listening to Events emitted #886

@jingxuan98

Description

@jingxuan98

Describe the bug

Baiscally I'm not able to listen and subscribe to mainnet Events Logs, but it works fine on testnet

It was working like 1 week ago when i started my node but now its not working

To Reproduce
Steps to reproduce the behavior:

  1. The script i use to test can be found at https://github.com/jingxuan98/cronos-mainnet-eventIssue
  2. Clone the repo and go get the packages and run go run main.go
  3. Deploy a ERC20 Token at Testnet and Mainnet and Test accordingly (RMB to change the token addresses adn WSS address)

Expected behavior

  1. Able to Listen to the Events on Testnet when a "transfer()" function is invoke follow by an "Transfer" event emitted, but not on Mainnet

Screenshots
Listening on Testnet
Screenshot 2023-02-20 at 12 23 19 AM

But for Mainnet its not listening
Screenshot 2023-02-20 at 12 23 51 AM

Macbook Pro M2
Golang 1.19

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions