HomePhabricator

Make ZMQ client python example asynchronous

Description

Make ZMQ client python example asynchronous

Summary:
Most of the code is from Bitcoin Core's implementation; however this was broken for versions of ZMQ newer than 15. Fixed this, removed hardcoded ip address, and switched to f-strings.

Moves old zmq_sub into zmq_sub27

Test Plan: Run the client code and compare the resulting data to the respective bitcoin-cli data. Note that transactions are given from the mempool and not blocks.

Reviewers: #bitcoin_abc, O1 Bitcoin ABC, schancel

Reviewed By: #bitcoin_abc, O1 Bitcoin ABC, schancel

Subscribers: schancel, teamcity

Differential Revision: https://reviews.bitcoinabc.org/D1120

Details

Provenance
aethnAuthored on Feb 24 2018, 21:02
aethnPushed on Mar 3 2018, 22:50
Reviewer
Restricted Project
Differential Revision
D1120: Make ZMQ client python example asynchronous
Parents
rABCd80238f09b4c: Remove dead code in miner test.
Branches
Unknown
Tags
Unknown