bitcoinwatcher 2.2__py3-none-any.whl → 2.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- bitcoin/tx_listener/zmq_listener.py +5 -2
- {bitcoinwatcher-2.2.dist-info → bitcoinwatcher-2.3.dist-info}/METADATA +1 -1
- {bitcoinwatcher-2.2.dist-info → bitcoinwatcher-2.3.dist-info}/RECORD +6 -6
- {bitcoinwatcher-2.2.dist-info → bitcoinwatcher-2.3.dist-info}/LICENSE +0 -0
- {bitcoinwatcher-2.2.dist-info → bitcoinwatcher-2.3.dist-info}/WHEEL +0 -0
- {bitcoinwatcher-2.2.dist-info → bitcoinwatcher-2.3.dist-info}/top_level.txt +0 -0
@@ -24,8 +24,11 @@ class ZMQTXListener:
|
|
24
24
|
self.socket.setsockopt_string(zmq.SUBSCRIBE, "rawtx")
|
25
25
|
while True:
|
26
26
|
topic, body, seq = self.socket.recv_multipart()
|
27
|
-
|
28
|
-
|
27
|
+
try:
|
28
|
+
tx = Transaction.parse(body, strict=False)
|
29
|
+
self.tx_listener.on_tx(tx)
|
30
|
+
except Exception as e:
|
31
|
+
print(f"Error in parsing tx: {e}")
|
29
32
|
|
30
33
|
def stop(self):
|
31
34
|
self.socket.close()
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: bitcoinwatcher
|
3
|
-
Version: 2.
|
3
|
+
Version: 2.3
|
4
4
|
Summary: bitcoinwatcher is a Python library that implements a ZMQ subscriber and provides abstractions to build custom address watchers. This library is designed to make it easy for developers to monitor Bitcoin addresses and react to changes in their state.
|
5
5
|
Author: twosatsmaxi
|
6
6
|
License: Apache License
|
@@ -17,15 +17,15 @@ bitcoin/tx_extractors/default.py,sha256=ZW9bJjq4-gvp-jJzNTrTFRRTReb4mOO0OmpTnDen
|
|
17
17
|
bitcoin/tx_extractors/mempool.py,sha256=mPPY1GOvBmZWn7UVP2sUaXtfcyeTCj-LmRDl2F4WhC8,2090
|
18
18
|
bitcoin/tx_listener/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
19
19
|
bitcoin/tx_listener/abstract_tx_listener.py,sha256=rGp9na-aOSl_aPaIqf44RTZaFF3SvrxIhZBujTnWqao,189
|
20
|
-
bitcoin/tx_listener/zmq_listener.py,sha256=
|
20
|
+
bitcoin/tx_listener/zmq_listener.py,sha256=V4-WIt5PYJaYoipn0rYhcFfg1BBYxqqQGucKhGXTmkg,1110
|
21
21
|
bitcoin/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
22
22
|
bitcoin/utils/benchmark.py,sha256=kaTTlo6k_5uDVIt8FMeY4nH7ZxxsoWUiMsZgHfpWsMo,894
|
23
23
|
bitcoin/utils/bitcoin_rpc.py,sha256=yEHS8BPI_Y4uLFL1ygUti8OI68JW67d_c1vshjEfQbA,932
|
24
24
|
bitcoin/utils/bitcoin_utils.py,sha256=mrnRPqUa2U2EMKu7rrPV_bW1sL2CJUfbAom0Zdamydk,631
|
25
25
|
bitcoin/utils/constants.py,sha256=irZLlArgica2VckyckEYxH5D5KjvdF52dtBMWswqw8k,52
|
26
26
|
bitcoin/utils/inscription_utils.py,sha256=8QbOJ1o1n1bMFsPREGLzwFjnGzfuARgJCPr6ORhP44o,193
|
27
|
-
bitcoinwatcher-2.
|
28
|
-
bitcoinwatcher-2.
|
29
|
-
bitcoinwatcher-2.
|
30
|
-
bitcoinwatcher-2.
|
31
|
-
bitcoinwatcher-2.
|
27
|
+
bitcoinwatcher-2.3.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
28
|
+
bitcoinwatcher-2.3.dist-info/METADATA,sha256=6dlhp29bUJsGG38h9gRRhR-OMDhDayLFMRJyyJs-eec,14938
|
29
|
+
bitcoinwatcher-2.3.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
|
30
|
+
bitcoinwatcher-2.3.dist-info/top_level.txt,sha256=YdUgzLdCiMlrwaKyDqHA1acEd23QFko5bv7D6nBANJ0,8
|
31
|
+
bitcoinwatcher-2.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|