spesmilo / electrumx

Alternative implementation of spesmilo/electrum-server
MIT License
438 stars 349 forks source link

How to fix issue blockchain.headers.subscribe and server.version? #126

Closed cno-dom closed 3 years ago

cno-dom commented 3 years ago

1- E/StratumClient: Failed call com.coinomi.stratumj.messages.MessageException: {"code":-32601,"message":"unknown method "blockchain.headers.subscribe""}:

2- com.coinomi.stratumj.messages.MessageException: {"code":-32601,"message":"unknown method "server.version""}: at com.coinomi.stratumj.StratumClient.run(StratumClient.java:198)

3- E/StratumClient: Failed call com.coinomi.stratumj.messages.MessageException: {"code":-32601,"message":"unknown method \"blockchain.address.subscribe\""}: at com.coinomi.stratumj.StratumClient.run(StratumClient.java:198)

May i know your advise how to fix it ? I use electrumx 1.16 ? I think it could be wrong version of com.coinomi.stratumj.messages's electrumx.

SomberNight commented 3 years ago

I use electrumx 1.6

That version is ~2.5 years old, please update.

unknown method "blockchain.address.subscribe"

That method has indeed been deprecated and even removed now. The others should work though.

com.coinomi.stratumj

You should probably ask the maintainers/developers of that package.

How are you running electrumx? Also, please link to the client you are using.

cno-dom commented 3 years ago

Sorry I used electrumx 1.16 not 1.6

electrumx 1.16 is running fine. how can I know those removal method changed to ?

client mb wallet: https://github.com/CryptowalletSi/Cryptowallet.si

SomberNight commented 3 years ago

see https://electrumx-spesmilo.readthedocs.io/en/latest/protocol.html

cno-dom commented 3 years ago

Why no protocol change doc in v1.16 ?

SomberNight commented 3 years ago

The versions mentioned there are re the "protocol version", which is independent of the version of ElectrumX. The latest protocol version is 1.4.2.

cno-dom commented 3 years ago

Hi, if method below is removed from latest version of electrumx. how can we fix it at front end side ?

blockchain.headers.subscribe. server.version blockchain.address.subscribe

Thanks

SomberNight commented 3 years ago

I am sorry but I don't have time to write code for you.

cno-dom commented 3 years ago

Just tell me how to fix i can fix it.