romanz / electrs

An efficient re-implementation of Electrum Server in Rust
MIT License
1.09k stars 403 forks source link

Can only sync one wallet at a time #566

Open Transisto opened 3 years ago

Transisto commented 3 years ago

When one wallet is being synced all other connection stop completely.

I'm using the default setting on MyNode, Is there something that can be done to enable simultaneous connections?

Is electrs multi threaded too? Doesn't seems like it's using more than 50% of a rPi CPU when at work.

Kixunil commented 3 years ago

electrs is multithreaded etc but it uses a single connection to bitcoind. So if the connection is exhausted by one thread syncing then the other needs to wait. I'm not sure if there's anything we can do about it, having many connections to bitcoind would mess with it's management of peers.

Transisto commented 3 years ago

I think it's slightly problematic if ever a user wants to share it's server with a few friends.

Kixunil commented 3 years ago

Yes it is, if those friends use it at the same time. I'd like this fixed too. I will try to figure out something.