You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seid version
Using the public Sei EVM websocket, wss://evm-ws-testnet.sei-apis.com.
Describe the bug
While adding support for Sei EVM to the Wormhole guardian, we are having problems listening to events from the Wormhole Core Contract on Sei EVM.
The Wormhole guardian watcher uses the go-ethereum library to connect to all EVM chains. That library handles subscribing to events and presenting them to our application level code.
We are not seeing any events generated on Sei EVM. This problem is seen both using the version of go-ethereum that the guardian as been using (v1.10.21) and the latest release (v1.14.12).
The go-ethereum code generates a subscription request as follows (and we have no real control over it):
It looks like the Sei RPC node has problems with the fromBlock and toBlock fields because if those are specified (which, again, we have no control over at the application layer), the subscription does not see any newly generated events.
To Reproduce
This problem can be reproduced using wscat and cast as follows.
First, run two instances of wscat.
The first one matches what go-ethereum uses and will not see events.
The first instance of wscat (using fromBlock and toBlock) will not see the event but the second wscat (which does not include those parameters) will see it.
Expected behavior
An eth_subscribe request that includes "fromBlock":"0x0","toBlock":"latest" should receive new events as they are generated.
Additional context
Although we can work around this issue to deploy Wormhole to Sei EVM testnet, we will not be able to deploy Wormhole to Sei EVM mainnet until this issue is resolved.
The text was updated successfully, but these errors were encountered:
As I mentioned above, the subscription parameters are generated by the go-ethereum library so we have no control over them, other than specifying the contract address.
I created a simple test app that uses the go-ethereum library to listen for events from the Wormhole core contract without needing to run the Wormhole guardian. It can be used to recreate the problem and also to verify a fix. See the PR description for how to use it. wormhole-foundation/wormhole#4214
Reminder: The desired behavior is that only new events are streamed, not historic ones.
Seid version
Using the public Sei EVM websocket,
wss://evm-ws-testnet.sei-apis.com
.Describe the bug
While adding support for Sei EVM to the Wormhole guardian, we are having problems listening to events from the Wormhole Core Contract on Sei EVM.
The Wormhole guardian watcher uses the go-ethereum library to connect to all EVM chains. That library handles subscribing to events and presenting them to our application level code.
We are not seeing any events generated on Sei EVM. This problem is seen both using the version of go-ethereum that the guardian as been using (v1.10.21) and the latest release (v1.14.12).
The go-ethereum code generates a subscription request as follows (and we have no real control over it):
It looks like the Sei RPC node has problems with the
fromBlock
andtoBlock
fields because if those are specified (which, again, we have no control over at the application layer), the subscription does not see any newly generated events.To Reproduce
This problem can be reproduced using
wscat
andcast
as follows.First, run two instances of wscat.
The first one matches what go-ethereum uses and will not see events.
The second is simplified and will see events.
Once the two instances of wscat are running, generate an event from the Wormhole core contract using cast:
The first instance of wscat (using
fromBlock
andtoBlock
) will not see the event but the second wscat (which does not include those parameters) will see it.Expected behavior
An
eth_subscribe
request that includes"fromBlock":"0x0","toBlock":"latest"
should receive new events as they are generated.Additional context
Although we can work around this issue to deploy Wormhole to Sei EVM testnet, we will not be able to deploy Wormhole to Sei EVM mainnet until this issue is resolved.
The text was updated successfully, but these errors were encountered: