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

Initial ZeroMQ Interface implementation. #1

Open
wants to merge 10 commits into
base: libbitcoin
Choose a base branch
from

Conversation

parazyd
Copy link

@parazyd parazyd commented Mar 13, 2021

We can fully sync the headers, and get notified about new headers.
Testing can be done with:

./run_electrum --testnet -V i --oneserver

The libbitcoin v4 testnet server is hardcoded in the Interface class for now.

grep for TODO: libbitcoin for notable places in the code.

This commit is relatively large, because changing the interface implies rewriting most of the interface.py module.
Additionally, this commit adds the zeromq.py module, which is the zmq client implementation that communicates with bs.

All locations where current and further code needs to be written, changed, and reviewed are marked with TODO: libbitcoin
for easier navigation while working.

interface.py and zeromq.py also implement their own print debug functions that aren't connected to then internal Electrum
logging. This is done intentionally to make it more obvious when zmq-related functions are called.

parazyd added 8 commits March 13, 2021 01:26
We can now fully sync the headers, and get notified about new headers.
Testing with:

	./run_electrum --testnet -V i --oneserver

The libbitcoin v4 testnet server is hardcoded in the Interface class for now.

grep for "TODO: libbitcoin" for further work.

Signed-off-by: parazyd <[email protected]>
Note that point[0] has changed. Review this.
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

Successfully merging this pull request may close these issues.

1 participant