bitcoinwatcher 2.15__tar.gz → 2.17__tar.gz

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.
Files changed (37) hide show
  1. {bitcoinwatcher-2.15 → bitcoinwatcher-2.17}/PKG-INFO +1 -1
  2. {bitcoinwatcher-2.15 → bitcoinwatcher-2.17}/bitcoin/tx_extractors/bitcoin_rpc.py +4 -6
  3. {bitcoinwatcher-2.15 → bitcoinwatcher-2.17}/bitcoinwatcher.egg-info/PKG-INFO +1 -1
  4. {bitcoinwatcher-2.15 → bitcoinwatcher-2.17}/pyproject.toml +1 -1
  5. {bitcoinwatcher-2.15 → bitcoinwatcher-2.17}/LICENSE +0 -0
  6. {bitcoinwatcher-2.15 → bitcoinwatcher-2.17}/README.md +0 -0
  7. {bitcoinwatcher-2.15 → bitcoinwatcher-2.17}/bitcoin/__init__.py +0 -0
  8. {bitcoinwatcher-2.15 → bitcoinwatcher-2.17}/bitcoin/address_listener/__init__.py +0 -0
  9. {bitcoinwatcher-2.15 → bitcoinwatcher-2.17}/bitcoin/address_listener/address_listener.py +0 -0
  10. {bitcoinwatcher-2.15 → bitcoinwatcher-2.17}/bitcoin/address_listener/simple_address_listener.py +0 -0
  11. {bitcoinwatcher-2.15 → bitcoinwatcher-2.17}/bitcoin/models/__init__.py +0 -0
  12. {bitcoinwatcher-2.15 → bitcoinwatcher-2.17}/bitcoin/models/address_tx_data.py +0 -0
  13. {bitcoinwatcher-2.15 → bitcoinwatcher-2.17}/bitcoin/tests/__init__.py +0 -0
  14. {bitcoinwatcher-2.15 → bitcoinwatcher-2.17}/bitcoin/tests/data/__init__.py +0 -0
  15. {bitcoinwatcher-2.15 → bitcoinwatcher-2.17}/bitcoin/tests/data/transactions.py +0 -0
  16. {bitcoinwatcher-2.15 → bitcoinwatcher-2.17}/bitcoin/tests/test_address_listener.py +0 -0
  17. {bitcoinwatcher-2.15 → bitcoinwatcher-2.17}/bitcoin/tests/test_bitcoin_rpc.py +0 -0
  18. {bitcoinwatcher-2.15 → bitcoinwatcher-2.17}/bitcoin/tests/test_bitcoin_utils.py +0 -0
  19. {bitcoinwatcher-2.15 → bitcoinwatcher-2.17}/bitcoin/tx_extractors/__init__.py +0 -0
  20. {bitcoinwatcher-2.15 → bitcoinwatcher-2.17}/bitcoin/tx_extractors/abstract_extractor.py +0 -0
  21. {bitcoinwatcher-2.15 → bitcoinwatcher-2.17}/bitcoin/tx_extractors/default.py +0 -0
  22. {bitcoinwatcher-2.15 → bitcoinwatcher-2.17}/bitcoin/tx_extractors/mempool.py +0 -0
  23. {bitcoinwatcher-2.15 → bitcoinwatcher-2.17}/bitcoin/tx_listener/__init__.py +0 -0
  24. {bitcoinwatcher-2.15 → bitcoinwatcher-2.17}/bitcoin/tx_listener/abstract_tx_listener.py +0 -0
  25. {bitcoinwatcher-2.15 → bitcoinwatcher-2.17}/bitcoin/tx_listener/zmq_listener.py +0 -0
  26. {bitcoinwatcher-2.15 → bitcoinwatcher-2.17}/bitcoin/utils/__init__.py +0 -0
  27. {bitcoinwatcher-2.15 → bitcoinwatcher-2.17}/bitcoin/utils/benchmark.py +0 -0
  28. {bitcoinwatcher-2.15 → bitcoinwatcher-2.17}/bitcoin/utils/bitcoin_rpc.py +0 -0
  29. {bitcoinwatcher-2.15 → bitcoinwatcher-2.17}/bitcoin/utils/bitcoin_utils.py +0 -0
  30. {bitcoinwatcher-2.15 → bitcoinwatcher-2.17}/bitcoin/utils/constants.py +0 -0
  31. {bitcoinwatcher-2.15 → bitcoinwatcher-2.17}/bitcoin/utils/context_aware_logging.py +0 -0
  32. {bitcoinwatcher-2.15 → bitcoinwatcher-2.17}/bitcoin/utils/inscription_utils.py +0 -0
  33. {bitcoinwatcher-2.15 → bitcoinwatcher-2.17}/bitcoinwatcher.egg-info/SOURCES.txt +0 -0
  34. {bitcoinwatcher-2.15 → bitcoinwatcher-2.17}/bitcoinwatcher.egg-info/dependency_links.txt +0 -0
  35. {bitcoinwatcher-2.15 → bitcoinwatcher-2.17}/bitcoinwatcher.egg-info/requires.txt +0 -0
  36. {bitcoinwatcher-2.15 → bitcoinwatcher-2.17}/bitcoinwatcher.egg-info/top_level.txt +0 -0
  37. {bitcoinwatcher-2.15 → bitcoinwatcher-2.17}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bitcoinwatcher
3
- Version: 2.15
3
+ Version: 2.17
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
@@ -93,8 +93,9 @@ class BitcoinRPCAddressDataExtractor(AbstractTxAddressDataExtractor):
93
93
 
94
94
  # Calculate fee manually using fetched input data
95
95
  calculated_fee = self.calculate_transaction_fee(tx, inputs_data)
96
- bitcoinlib_fee = tx.fee
97
-
96
+ virtual_size = tx.vsize
97
+ fee_per_vbyte = math.ceil(calculated_fee / virtual_size * 100) / 100 if virtual_size > 0 else 0
98
+ logger.info("Transaction vsize: %d, Fee per vbyte: %.2f sats/vbyte", virtual_size, fee_per_vbyte)
98
99
  # Check for bitmap inscription
99
100
  bitmap_inscription = self.check_bitmap_patterns(tx)
100
101
  if bitmap_inscription:
@@ -122,10 +123,7 @@ class BitcoinRPCAddressDataExtractor(AbstractTxAddressDataExtractor):
122
123
  if bitmap_inscription is not None:
123
124
  bitmap_details = BitmapDetails()
124
125
  bitmap_details.fee = calculated_fee
125
- witness_size = len(tx.witness_data()) // 2 if tx.witness_data else 0
126
- virtual_size = (tx.size * 3 + witness_size) / 4
127
- fee_per_vbyte = math.ceil(calculated_fee / virtual_size * 100) / 100 if virtual_size > 0 else 0
128
- bitmap_details.fee_per_vbyte = round(fee_per_vbyte, 2)
126
+ bitmap_details.fee_per_vbyte = fee_per_vbyte
129
127
  bitmap_details.bitmap_number = int(bitmap_inscription.split(".bitmap")[0])
130
128
  address_tx_data[0].bitmap_details = bitmap_details
131
129
  return address_tx_data
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bitcoinwatcher
3
- Version: 2.15
3
+ Version: 2.17
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
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
5
5
 
6
6
  [project]
7
7
  name = "bitcoinwatcher"
8
- version = "2.15"
8
+ version = "2.17"
9
9
  description = "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."
10
10
  readme = "README.md"
11
11
  authors = [{name = "twosatsmaxi"}]
File without changes
File without changes
File without changes