2

I am a bit confused regarding the bitcoind peers and Electrum X peers.

From what I understand, the electrum X protocol is built on top of the bitcoin blockchain, but I cannot quite wrap my head around on how exactly they interact.

I get it that electrum needs to have access to a bitcoind process in order to sync up its database, but what happens after the sync? Does the electrum client receive notifications about new transactions from other electrum peers, or does it still use underlying bitcoind mempool? Or both?

Can somebody explain on how exactly these 2 services interact?

1 Answer 1

2

Electrum Server is a fancy abstraction on top of bitcoind and a custom index of UTXO data. Client wallets connect to it and send queries for details about their wallet, using its own index Electrum Server requests the correct information from bitcoind and returns it to the client. The Electrum Server keeps its index up to date by continuously querying bitcoind for changes such as mempool updates or new blocks.

enter image description here

All communication with the wider Bitcoin network happens through bitcoind, including block updates and transaction broadcasts. For the purpose of this discussion, Electrum servers are standalone and completely unaware of one another, there is no cross communication between them.

2
  • This was the clarification that I was looking for. Thanks a lot! But what about electrum's protocol methods that refer to peers. What happens when you add a new peer? electrumx.readthedocs.io/en/latest/…
    – pxr_64
    Dec 14, 2020 at 7:47
  • 1
    That’s for server discovery in the client.
    – Claris
    Dec 14, 2020 at 14:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.