Kava-Labs / kava

DeFi for Crypto.
Apache License 2.0
451 stars 377 forks source link

Websocket json rpc event subscriptions are broken (fix available) #1626

Open CRossel87a opened 1 year ago

CRossel87a commented 1 year ago

Hi,

Kava is currently running on a version of Ethermint that has a bug in the eth subscribe to topics functionality. With this bug present, concurrent subscriptions to topic logs will break the json rpc. After testing, the bug is indeed present on Kava resulting in very unstable connections requiring frequent restarts of the node to service my dapps.

One fix is available here: https://github.com/evmos/ethermint/pull/1773

I have manually applied this fix to a local version of Kava, and the websocket subscriptions are still quite unstable. This older version of Ethermint sadly has a lot of problems with the rpc.

CRossel87a commented 1 year ago

If anyone is curious, a temporary work-around to this issue is to use 1 Kava server per topic subscription.