coral-xyz / anchor

⚓ Solana Sealevel Framework
https://anchor-lang.com
Apache License 2.0
3.59k stars 1.32k forks source link

Anchor event listener not recording few transactions #2889

Closed sunidhii19 closed 6 months ago

sunidhii19 commented 6 months ago

Hi, I am listening to an event emitted from my program using @coral-xyz/anchor library but it is not recording all the transactions on mainnet. I am using quicknode pro RPC URL for establishing the websocket connection to listen to these events on my program. What could be the reason here?

solana-anchor-issue

acheroncrypto commented 6 months ago

See https://github.com/coral-xyz/anchor/issues/1613 for more info on why this happens.

event-cpi feature fixes this issue but it's not as ergonomic to use e.g. not as easy to subscribe. See usage example here.