Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data did not match any variant of untagged enum ElectrumRpcResponseEnum #2134

Open
cipig opened this issue Jun 6, 2024 · 0 comments
Open

Comments

@cipig
Copy link
Member

cipig commented Jun 6, 2024

when i enable XEC with these electrums
curl --url "http://127.0.0.1:7783" --data "{\"method\":\"electrum\",\"coin\":\"XEC\",\"servers\":[{\"url\":\"electrum.bitcoinabc.org:50002\",\"protocol\":\"SSL\",\"disable_cert_verification\":true},{\"url\":\"fulcrum.pepipierre.fr:50002\",\"protocol\":\"SSL\",\"disable_cert_verification\":true}],\"userpass\":\"$userpass\",\"mm2\":1}"
i see this error in log
coins::utxo::rpc_clients:2588] ERROR data did not match any variant of untagged enum ElectrumRpcResponseEnum
and it takes much longer for the enable call then on other coins
later, XEC works fine, i see balance and swaps work
the servers are from https://1209k.com/bitcoin-eye/ele.php?chain=xec, we use the same in the GUIs
they don't use Electrumx software, but Fulcrum
i checked on Linux CLI by calling blockchain.headers.subscribe like that:
(echo '{ "id": 1, "method": "blockchain.headers.subscribe" }'; sleep 2) | ncat --ssl fulcrum.pepipierre.fr 50002
i get the correct response, like on other electrumx electrums, eg {"id":1,"jsonrpc":"2.0","result":{"height":847844,"hex":"0040c8335b43930656bf3e3817af66bcd1eedb8974d1edeac91b1f090000000000000000d99527b1a16d73ac0e11705f3fca325f49090acba6c7390c6828b31c25e683dd07e1616669cf271834fc3d62"}} but the call does not return to shell, i need to Ctrl+C... this is different then on other electrums and could explain why it takes much longer to enable XEC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant