From 3d92fa09d0e351847ca008ffb1b6f3ede1969922 Mon Sep 17 00:00:00 2001 From: Cryp Toon Date: Mon, 15 Jan 2024 21:26:41 +0100 Subject: [PATCH] Remove Blocksmurfer providers as API is down --- bitcoinlib/data/providers.json | 22 ---------------------- bitcoinlib/encoding.py | 2 +- bitcoinlib/services/services.py | 2 +- 3 files changed, 2 insertions(+), 24 deletions(-) diff --git a/bitcoinlib/data/providers.json b/bitcoinlib/data/providers.json index bc2a275c..16a9e036 100644 --- a/bitcoinlib/data/providers.json +++ b/bitcoinlib/data/providers.json @@ -405,27 +405,5 @@ "priority": 10, "denominator": 1, "network_overrides": null - }, - "blocksmurfer": { - "provider": "blocksmurfer", - "network": "bitcoin", - "client_class": "BlocksmurferClient", - "provider_coin_id": "", - "url": "https://harari.blocksmurfer.io/api/v1/btc/", - "api_key": "", - "priority": 10, - "denominator": 100000000, - "network_overrides": null - }, - "blocksmurfer.testnet": { - "provider": "blocksmurfer", - "network": "testnet", - "client_class": "BlocksmurferClient", - "provider_coin_id": "", - "url": "https://harari.blocksmurfer.io/api/v1/tbtc/", - "api_key": "", - "priority": 10, - "denominator": 100000000, - "network_overrides": null } } diff --git a/bitcoinlib/encoding.py b/bitcoinlib/encoding.py index e970610d..8b78e9d1 100644 --- a/bitcoinlib/encoding.py +++ b/bitcoinlib/encoding.py @@ -33,7 +33,7 @@ try: from Crypto.Hash import RIPEMD160 except ImportError as err: - _logger.warning("Could not import RIPEMD160 from cryptodome, will try do use hashlib but this could lead to errors") + _logger.warning("Could not import RIPEMD160 from cryptodome, will try to use hashlib but this could lead to errors") try: from Crypto.Cipher import AES diff --git a/bitcoinlib/services/services.py b/bitcoinlib/services/services.py index da952a2e..b032dbf3 100644 --- a/bitcoinlib/services/services.py +++ b/bitcoinlib/services/services.py @@ -25,7 +25,7 @@ from sqlalchemy import func from bitcoinlib import services from bitcoinlib.networks import Network -from bitcoinlib.encoding import to_bytes, int_to_varbyteint, varstr, varbyteint_to_int +from bitcoinlib.encoding import to_bytes, int_to_varbyteint, varstr from bitcoinlib.db_cache import * from bitcoinlib.transactions import Transaction, transaction_update_spents from bitcoinlib.blocks import Block