bitcoinwatcher 2.9__py3-none-any.whl → 2.10__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_extractors/bitcoin_rpc.py +6 -2
- {bitcoinwatcher-2.9.dist-info → bitcoinwatcher-2.10.dist-info}/METADATA +1 -1
- {bitcoinwatcher-2.9.dist-info → bitcoinwatcher-2.10.dist-info}/RECORD +6 -6
- {bitcoinwatcher-2.9.dist-info → bitcoinwatcher-2.10.dist-info}/LICENSE +0 -0
- {bitcoinwatcher-2.9.dist-info → bitcoinwatcher-2.10.dist-info}/WHEEL +0 -0
- {bitcoinwatcher-2.9.dist-info → bitcoinwatcher-2.10.dist-info}/top_level.txt +0 -0
@@ -18,11 +18,15 @@ class BitcoinRPCAddressDataExtractor(AbstractTxAddressDataExtractor):
|
|
18
18
|
self.bitcoinrpc = BitcoinRPC()
|
19
19
|
|
20
20
|
def fetch_all_inputs(self, inputs):
|
21
|
-
|
21
|
+
unique_txids = list(set([input.prev_txid.hex() for input in inputs]))
|
22
|
+
rpc_calls = [["getrawtransaction", tx_id, True] for tx_id in unique_txids]
|
22
23
|
data = self.bitcoinrpc.rpc_connection.batch_(rpc_calls)
|
24
|
+
tx_id_to_data = {tx_id: current_tx for tx_id, current_tx in zip(unique_txids, data)}
|
23
25
|
list_of_vouts = []
|
24
26
|
for input in inputs:
|
25
|
-
|
27
|
+
tx_id = input.prev_txid.hex()
|
28
|
+
current_tx = tx_id_to_data[tx_id]
|
29
|
+
vout = current_tx["vout"][input.output_n_int]
|
26
30
|
list_of_vouts.append(vout)
|
27
31
|
return list_of_vouts
|
28
32
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: bitcoinwatcher
|
3
|
-
Version: 2.
|
3
|
+
Version: 2.10
|
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
|
@@ -12,7 +12,7 @@ bitcoin/tests/data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuF
|
|
12
12
|
bitcoin/tests/data/transactions.py,sha256=qIX9seGYguQ1lvLOCF8oe3NQhMJZP0SsBmz1iFbszhg,396279
|
13
13
|
bitcoin/tx_extractors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
14
14
|
bitcoin/tx_extractors/abstract_extractor.py,sha256=YLnuqc3jva15NpOX8xV4oB5PEXc6rXbG8Lx0cBXW66s,291
|
15
|
-
bitcoin/tx_extractors/bitcoin_rpc.py,sha256=
|
15
|
+
bitcoin/tx_extractors/bitcoin_rpc.py,sha256=vIRCc36vulk5cwKVVkEKAMJ8S82Gx_HJK7ePx3AjpOs,3317
|
16
16
|
bitcoin/tx_extractors/default.py,sha256=KLT0EIbrp9yzFTQ-U5JRGI4ACHkvEMmycdXQGoPRU20,1509
|
17
17
|
bitcoin/tx_extractors/mempool.py,sha256=mPPY1GOvBmZWn7UVP2sUaXtfcyeTCj-LmRDl2F4WhC8,2090
|
18
18
|
bitcoin/tx_listener/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -25,8 +25,8 @@ bitcoin/utils/bitcoin_utils.py,sha256=mrnRPqUa2U2EMKu7rrPV_bW1sL2CJUfbAom0Zdamyd
|
|
25
25
|
bitcoin/utils/constants.py,sha256=irZLlArgica2VckyckEYxH5D5KjvdF52dtBMWswqw8k,52
|
26
26
|
bitcoin/utils/context_aware_logging.py,sha256=p3PuFnHjJcgEH8O9ng7UrXvW3SVDWGaeYgxysDuqRyI,1874
|
27
27
|
bitcoin/utils/inscription_utils.py,sha256=8QbOJ1o1n1bMFsPREGLzwFjnGzfuARgJCPr6ORhP44o,193
|
28
|
-
bitcoinwatcher-2.
|
29
|
-
bitcoinwatcher-2.
|
30
|
-
bitcoinwatcher-2.
|
31
|
-
bitcoinwatcher-2.
|
32
|
-
bitcoinwatcher-2.
|
28
|
+
bitcoinwatcher-2.10.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
29
|
+
bitcoinwatcher-2.10.dist-info/METADATA,sha256=ZFHSOyKS9q4398iYHjOXPlcHvLU-hNY19fcySJz3V8o,15021
|
30
|
+
bitcoinwatcher-2.10.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
31
|
+
bitcoinwatcher-2.10.dist-info/top_level.txt,sha256=YdUgzLdCiMlrwaKyDqHA1acEd23QFko5bv7D6nBANJ0,8
|
32
|
+
bitcoinwatcher-2.10.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|