Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

Bucketd ElectrumConnectivity connectivity error when spawned by contract register #225

Open
frankwalter1301 opened this issue Dec 18, 2022 · 9 comments
Assignees
Labels
bug Something isn't working

Comments

@frankwalter1301
Copy link

Bucketd when spawned by rgbd when running rgb-cli contract register does not connect to the electrum server giving this error:
thread 'main' panicked at 'running bucketd runtime: AppLevel(ElectrumConnectivity)', src/bin/bucketd.rs:48:26
Instead, when I spawn a bucketd process, with everything as default, before running the command everything works fine.

@crisdut crisdut added the bug Something isn't working label Dec 20, 2022
@crisdut
Copy link
Member

crisdut commented Dec 20, 2022

Hi @dr-orlovsky,

This error occurs because the electrum server pandora.network is not accepting connections, and bucketd "freezes" when try to connect to it.

I detected it today when I tried to execute rgb-cli transfer finalize

@dr-orlovsky
Copy link
Member

Thanks for reporting! I will check what's wrong with the server. You know that the server can be replaced with a command-line option?

@crisdut
Copy link
Member

crisdut commented Dec 20, 2022

Thanks for reporting! I will check what's wrong with the server. You know that the server can be replaced with a command-line option?

You can pass server parameter when start rgbd daemon, but by rgb-cli that's not possible.

Would you like me to make this change?

@frankwalter1301
Copy link
Author

frankwalter1301 commented Dec 21, 2022

When bucketd is spawned by rgbd it have this error. Maybe it is because rgbd does not pass the same electrum server that is uses to bucketd and bucketd goes to pandora.network? Btw when I tried pandora.network on rgbd it seemed to work.

@crisdut
Copy link
Member

crisdut commented Dec 21, 2022

When bucketd is spawned by rgbd it have this error. Maybe it is because rgbd does not pass the same electrum server that is uses to bucketd and bucketd goes to pandora.network? Btw when I tried pandora.network on rgbd it seemed to work.

I tested here and the server cannot be accept the connection.

Do you tried runrgb-cli finalize command? This operation uses electrum server.

Also, you can use some projects to help you tests lnpbp projects, like https://github.com/LNP-BP/nodes/issues and https://github.com/crisdut/lnpbp-regtest

@dr-orlovsky
Copy link
Member

I changed default electrum server for now to blockstream.info. Will be doing a big update to the code for v0.10 and than will change the way electrum server handled anyway

@cryptoquick
Copy link
Member

Ooh, this ought to be good! I'm looking forward to seeing the solution. Will it be using bp-node, or something else?

@dr-orlovsky
Copy link
Member

Hopefully BP Node. It is needed for LN as well (for computing short channel ids which can't be handled by neither electrum server nor bitcoin core)

@cryptoquick
Copy link
Member

LFG! 🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants