bitcoinwatcher 2.14__py3-none-any.whl → 2.16__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/address_listener/address_listener.py +0 -1
- bitcoin/tx_extractors/bitcoin_rpc.py +3 -6
- {bitcoinwatcher-2.14.dist-info → bitcoinwatcher-2.16.dist-info}/METADATA +1 -1
- {bitcoinwatcher-2.14.dist-info → bitcoinwatcher-2.16.dist-info}/RECORD +7 -7
- {bitcoinwatcher-2.14.dist-info → bitcoinwatcher-2.16.dist-info}/WHEEL +0 -0
- {bitcoinwatcher-2.14.dist-info → bitcoinwatcher-2.16.dist-info}/licenses/LICENSE +0 -0
- {bitcoinwatcher-2.14.dist-info → bitcoinwatcher-2.16.dist-info}/top_level.txt +0 -0
@@ -56,7 +56,6 @@ class AbstractAddressListener(AbstractTxListener, ABC):
|
|
56
56
|
self.consume(tx_hex=tx.raw_hex(), subscribed_address="SATFLOW", address_tx_data=address_tx_data)
|
57
57
|
else:
|
58
58
|
logger.debug(f"No addresses to listen to for transaction {tx.txid}.")
|
59
|
-
return
|
60
59
|
bitmap_tx = next((addr_data for addr_data in address_tx_data if addr_data.bitmap_details is not None), None)
|
61
60
|
if bitmap_tx:
|
62
61
|
logger.info(f"Transaction {tx.txid} contains bitmap inscription: {bitmap_tx.bitmap_details}")
|
@@ -99,8 +99,6 @@ class BitcoinRPCAddressDataExtractor(AbstractTxAddressDataExtractor):
|
|
99
99
|
bitmap_inscription = self.check_bitmap_patterns(tx)
|
100
100
|
if bitmap_inscription:
|
101
101
|
logger.info("Bitmap inscription found: %s", bitmap_inscription)
|
102
|
-
logger.info("Fee comparison - Calculated: %d sats, BitcoinLib: %d sats",
|
103
|
-
calculated_fee, bitcoinlib_fee)
|
104
102
|
for input in inputs:
|
105
103
|
address = input.address
|
106
104
|
amount = 0
|
@@ -121,13 +119,12 @@ class BitcoinRPCAddressDataExtractor(AbstractTxAddressDataExtractor):
|
|
121
119
|
_amount=amount,
|
122
120
|
type=AddressTxType.OUTPUT,
|
123
121
|
tx_id=tx.txid))
|
124
|
-
if bitmap_inscription:
|
122
|
+
if bitmap_inscription is not None:
|
125
123
|
bitmap_details = BitmapDetails()
|
126
124
|
bitmap_details.fee = calculated_fee
|
127
|
-
|
128
|
-
virtual_size = (tx.size * 3 + witness_size) / 4
|
125
|
+
virtual_size = tx.vsize
|
129
126
|
fee_per_vbyte = math.ceil(calculated_fee / virtual_size * 100) / 100 if virtual_size > 0 else 0
|
130
|
-
bitmap_details.fee_per_vbyte =
|
127
|
+
bitmap_details.fee_per_vbyte = fee_per_vbyte
|
131
128
|
bitmap_details.bitmap_number = int(bitmap_inscription.split(".bitmap")[0])
|
132
129
|
address_tx_data[0].bitmap_details = bitmap_details
|
133
130
|
return address_tx_data
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: bitcoinwatcher
|
3
|
-
Version: 2.
|
3
|
+
Version: 2.16
|
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
|
@@ -1,6 +1,6 @@
|
|
1
1
|
bitcoin/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
2
|
bitcoin/address_listener/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
|
-
bitcoin/address_listener/address_listener.py,sha256=
|
3
|
+
bitcoin/address_listener/address_listener.py,sha256=lxRcvrB1Gr360RXymkGNNOCxsKqD2pbALBvbjQ0UEno,3206
|
4
4
|
bitcoin/address_listener/simple_address_listener.py,sha256=yQTxWVthsMiYkXzWYmGMCzP0LWTUokgWFkqEf8GsUB4,1674
|
5
5
|
bitcoin/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
6
|
bitcoin/models/address_tx_data.py,sha256=E_3YJ6A0RBrg5FeSVtkw5qQbKKubbq_QWIp9LXQOWq0,897
|
@@ -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=fj3V8PfEv8AOxSpVPaaaCSaWYBG5QiFnJBAEvGgIwcM,5923
|
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=hoYzduIO5vsBPW4imp-pNqsxmErtJMCaPURc6N_OKx
|
|
25
25
|
bitcoin/utils/constants.py,sha256=bolLU7V3pFt6dQQ__CK5ESC8bkg0jO_Akn4iubaUum0,51
|
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.16.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
29
|
+
bitcoinwatcher-2.16.dist-info/METADATA,sha256=4j2L_uRs-0HCooklqJ3IXi2wOAy_o7JKta84_F1rPJw,15043
|
30
|
+
bitcoinwatcher-2.16.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
31
|
+
bitcoinwatcher-2.16.dist-info/top_level.txt,sha256=YdUgzLdCiMlrwaKyDqHA1acEd23QFko5bv7D6nBANJ0,8
|
32
|
+
bitcoinwatcher-2.16.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|