bitcoinlib 0.7.2__tar.gz → 0.7.3__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.
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/CHANGELOG +11 -0
- {bitcoinlib-0.7.2/bitcoinlib.egg-info → bitcoinlib-0.7.3}/PKG-INFO +3 -2
- bitcoinlib-0.7.3/bitcoinlib/config/VERSION +1 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/data/providers.examples.json +21 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/data/providers.json +11 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/services/authproxy.py +1 -1
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/services/bitcoind.py +8 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/services/mempool.py +1 -2
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/services/services.py +2 -2
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/transactions.py +4 -1
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/wallets.py +2 -2
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3/bitcoinlib.egg-info}/PKG-INFO +3 -2
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/setup.cfg +1 -1
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/tests/test_db.py +1 -1
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/tests/test_services.py +4 -4
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/tests/test_wallets.py +2 -2
- bitcoinlib-0.7.2/bitcoinlib/config/VERSION +0 -1
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/LICENSE +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/MANIFEST.in +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/README.rst +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/__init__.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/__init__.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/blocks.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/config/__init__.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/config/__pycache__/__init__.cpython-310.pyc +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/config/__pycache__/__init__.cpython-38.pyc +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/config/__pycache__/config.cpython-310.pyc +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/config/__pycache__/config.cpython-38.pyc +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/config/__pycache__/opcodes.cpython-310.pyc +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/config/__pycache__/opcodes.cpython-38.pyc +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/config/__pycache__/secp256k1.cpython-310.pyc +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/config/__pycache__/secp256k1.cpython-38.pyc +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/config/config.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/config/opcodes.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/config/secp256k1.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/data/config.ini +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/data/networks.json +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/db.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/db_cache.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/encoding.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/keys.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/main.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/mnemonic.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/networks.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/scripts.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/services/__init__.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/services/baseclient.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/services/bcoin.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/services/bitaps.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/services/bitcoinlibtest.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/services/bitflyer.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/services/bitgo.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/services/blockbook.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/services/blockchaininfo.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/services/blockchair.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/services/blockcypher.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/services/blocksmurfer.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/services/blockstream.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/services/chainso.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/services/cryptoid.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/services/dogecoind.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/services/electrumx.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/services/litecoinblockexplorer.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/services/litecoind.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/services/litecoreio.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/tools/__init__.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/tools/benchmark.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/tools/clw.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/tools/import_database.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/tools/mnemonic_key_create.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/tools/sign_raw.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/tools/wallet_multisig_2of3.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/values.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/wordlist/chinese_simplified.txt +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/wordlist/chinese_traditional.txt +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/wordlist/dutch.txt +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/wordlist/english.txt +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/wordlist/french.txt +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/wordlist/italian.txt +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/wordlist/japanese.txt +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/wordlist/portuguese.txt +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/wordlist/spanish.txt +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib.egg-info/SOURCES.txt +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib.egg-info/dependency_links.txt +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib.egg-info/entry_points.txt +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib.egg-info/requires.txt +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib.egg-info/top_level.txt +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib.egg-info/zip-safe +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/pyproject.toml +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/requirements.txt +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/tests/__init__.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/tests/bip38_protected_key_tests.json +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/tests/block250000.pickle +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/tests/block330000.pickle +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/tests/block625007.pickle +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/tests/block629999.pickle +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/tests/block722010.pickle +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/tests/electrum_keys.json +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/tests/mnemonics_tests.json +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/tests/test_blocks.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/tests/test_custom.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/tests/test_encoding.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/tests/test_keys.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/tests/test_mnemonic.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/tests/test_networks.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/tests/test_script.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/tests/test_security.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/tests/test_tools.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/tests/test_transactions.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/tests/test_values.py +0 -0
- {bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/tests/transactions_raw.json +0 -0
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
RELEASE 0.7.3 - Fix provider issues, increase performance
|
|
2
|
+
=========================================================
|
|
3
|
+
* ElectrumX and Blockbook examples and documentation
|
|
4
|
+
* Add mempool Signet provider
|
|
5
|
+
* Fix documentation build
|
|
6
|
+
* Enable unittest for Bitaps
|
|
7
|
+
* Fix Mempool provider transaction order
|
|
8
|
+
* Fix incorrect txid's when parsing blocks
|
|
9
|
+
* Fix other provider issues
|
|
10
|
+
* Improve provider performance
|
|
11
|
+
|
|
1
12
|
RELEASE 0.7.2 - ElectrumX, Signet, Blocksmurfer API
|
|
2
13
|
===================================================
|
|
3
14
|
* ElectrumX server support
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: bitcoinlib
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.3
|
|
4
4
|
Summary: Bitcoin cryptocurrency Library
|
|
5
5
|
Home-page: http://github.com/1200wd/bitcoinlib
|
|
6
6
|
Author: 1200wd
|
|
@@ -44,6 +44,7 @@ Requires-Dist: mysqlclient>=2.2.0; extra == "dev"
|
|
|
44
44
|
Requires-Dist: sphinx_rtd_theme>=2.0.0; extra == "dev"
|
|
45
45
|
Requires-Dist: Cython>=3.0.8; extra == "dev"
|
|
46
46
|
Requires-Dist: win-unicode-console; platform_system == "Windows" and extra == "dev"
|
|
47
|
+
Dynamic: license-file
|
|
47
48
|
|
|
48
49
|
Python Bitcoin Library
|
|
49
50
|
======================
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.7.3
|
|
@@ -438,5 +438,26 @@
|
|
|
438
438
|
"priority": 10,
|
|
439
439
|
"denominator": 100000000,
|
|
440
440
|
"network_overrides": null
|
|
441
|
+
},
|
|
442
|
+
"localhost.electrumx": {
|
|
443
|
+
"provider": "electrumx",
|
|
444
|
+
"network": "bitcoin",
|
|
445
|
+
"client_class": "ElectrumxClient",
|
|
446
|
+
"provider_coin_id": "",
|
|
447
|
+
"url": "localhost:50001",
|
|
448
|
+
"api_key": "",
|
|
449
|
+
"priority": 10,
|
|
450
|
+
"denominator": 1,
|
|
451
|
+
"network_overrides": null
|
|
452
|
+
},
|
|
453
|
+
"blockbook.localhost": {
|
|
454
|
+
"provider": "blockbook",
|
|
455
|
+
"network": "bitcoin",
|
|
456
|
+
"client_class": "BlockbookClient",
|
|
457
|
+
"provider_coin_id": "",
|
|
458
|
+
"url": "http://localhost:9130/api/v2/",
|
|
459
|
+
"priority": 10,
|
|
460
|
+
"denominator": 100000000,
|
|
461
|
+
"network_overrides": null
|
|
441
462
|
}
|
|
442
463
|
}
|
|
@@ -393,5 +393,16 @@
|
|
|
393
393
|
"denominator": 1,
|
|
394
394
|
"network_overrides": null,
|
|
395
395
|
"timeout": 0
|
|
396
|
+
},
|
|
397
|
+
"mempool.signet": {
|
|
398
|
+
"provider": "mempool",
|
|
399
|
+
"network": "signet",
|
|
400
|
+
"client_class": "MempoolClient",
|
|
401
|
+
"provider_coin_id": "",
|
|
402
|
+
"url": "https://mempool.space/signet/api/",
|
|
403
|
+
"api_key": "",
|
|
404
|
+
"priority": 10,
|
|
405
|
+
"denominator": 1,
|
|
406
|
+
"network_overrides": null
|
|
396
407
|
}
|
|
397
408
|
}
|
|
@@ -168,7 +168,7 @@ class AuthServiceProxy(object):
|
|
|
168
168
|
results = []
|
|
169
169
|
responses = self._get_response()
|
|
170
170
|
for response in responses:
|
|
171
|
-
if response
|
|
171
|
+
if response.get('error') is not None:
|
|
172
172
|
raise JSONRPCException(response['error'])
|
|
173
173
|
elif 'result' not in response:
|
|
174
174
|
raise JSONRPCException({
|
|
@@ -195,6 +195,14 @@ class BitcoindClient(BaseClient):
|
|
|
195
195
|
if get_input_values:
|
|
196
196
|
txi = self.proxy.getrawtransaction(i.prev_txid.hex(), 1)
|
|
197
197
|
i.value = int(round(float(txi['vout'][i.output_n_int]['value']) / self.network.denominator))
|
|
198
|
+
# This doesn't seem to save any time:
|
|
199
|
+
# if get_input_values:
|
|
200
|
+
# batchreq = []
|
|
201
|
+
# for i in t.inputs:
|
|
202
|
+
# batchreq.append(['getrawtransaction', i.prev_txid.hex(), 1])
|
|
203
|
+
# res = self.proxy.batch_(batchreq)
|
|
204
|
+
# for n, txi in enumerate(res):
|
|
205
|
+
# t.inputs[n].value = int(round(float(txi['vout'][t.inputs[n].output_n_int]['value']) / self.network.denominator))
|
|
198
206
|
for o in t.outputs:
|
|
199
207
|
o.spent = None
|
|
200
208
|
|
|
@@ -141,8 +141,7 @@ class MempoolClient(BaseClient):
|
|
|
141
141
|
if len(prtxs) > 100:
|
|
142
142
|
break
|
|
143
143
|
txs = []
|
|
144
|
-
|
|
145
|
-
for tx in sorted(prtxs, key=lambda x: x['status']['block_height']):
|
|
144
|
+
for tx in prtxs[::-1]:
|
|
146
145
|
t = self._parse_transaction(tx)
|
|
147
146
|
if t:
|
|
148
147
|
txs.append(t)
|
|
@@ -101,7 +101,7 @@ class Service(object):
|
|
|
101
101
|
raise ServiceError(errstr)
|
|
102
102
|
f.close()
|
|
103
103
|
|
|
104
|
-
|
|
104
|
+
provider_set = {self.providers_defined[x]['provider'] for x in self.providers_defined}
|
|
105
105
|
if providers is None:
|
|
106
106
|
providers = []
|
|
107
107
|
if exclude_providers is None:
|
|
@@ -109,7 +109,7 @@ class Service(object):
|
|
|
109
109
|
if not isinstance(providers, list):
|
|
110
110
|
providers = [providers]
|
|
111
111
|
for p in providers:
|
|
112
|
-
if p not in
|
|
112
|
+
if p not in provider_set:
|
|
113
113
|
raise ServiceError("Provider '%s' not found in provider definitions" % p)
|
|
114
114
|
|
|
115
115
|
self.providers = {}
|
|
@@ -1006,8 +1006,11 @@ class Transaction(object):
|
|
|
1006
1006
|
rawtx.seek(pos_start)
|
|
1007
1007
|
raw_bytes = rawtx.read(raw_len)
|
|
1008
1008
|
|
|
1009
|
+
txid = '' if witness_type == 'segwit' else double_sha256(raw_bytes)[::-1].hex()
|
|
1010
|
+
|
|
1009
1011
|
return Transaction(inputs, outputs, locktime, version, network, size=raw_len, output_total=output_total,
|
|
1010
|
-
coinbase=coinbase, flag=flag, witness_type=witness_type, rawtx=raw_bytes, index=index
|
|
1012
|
+
coinbase=coinbase, flag=flag, witness_type=witness_type, rawtx=raw_bytes, index=index,
|
|
1013
|
+
txid=txid)
|
|
1011
1014
|
|
|
1012
1015
|
@classmethod
|
|
1013
1016
|
def parse_hex(cls, rawtx, strict=True, network=DEFAULT_NETWORK):
|
|
@@ -1235,9 +1235,9 @@ class Wallet(object):
|
|
|
1235
1235
|
def _commit(self):
|
|
1236
1236
|
try:
|
|
1237
1237
|
self.session.commit()
|
|
1238
|
-
except Exception:
|
|
1238
|
+
except Exception as e:
|
|
1239
1239
|
self.session.rollback()
|
|
1240
|
-
raise WalletError("Could not commit to database, rollback performed!")
|
|
1240
|
+
raise WalletError("Could not commit to database, rollback performed! Database error: %s" % str(e))
|
|
1241
1241
|
|
|
1242
1242
|
@classmethod
|
|
1243
1243
|
def create(cls, name, keys=None, owner='', network=None, account_id=0, purpose=0, scheme='bip32',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: bitcoinlib
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.3
|
|
4
4
|
Summary: Bitcoin cryptocurrency Library
|
|
5
5
|
Home-page: http://github.com/1200wd/bitcoinlib
|
|
6
6
|
Author: 1200wd
|
|
@@ -44,6 +44,7 @@ Requires-Dist: mysqlclient>=2.2.0; extra == "dev"
|
|
|
44
44
|
Requires-Dist: sphinx_rtd_theme>=2.0.0; extra == "dev"
|
|
45
45
|
Requires-Dist: Cython>=3.0.8; extra == "dev"
|
|
46
46
|
Requires-Dist: win-unicode-console; platform_system == "Windows" and extra == "dev"
|
|
47
|
+
Dynamic: license-file
|
|
47
48
|
|
|
48
49
|
Python Bitcoin Library
|
|
49
50
|
======================
|
|
@@ -89,7 +89,7 @@ class TestDb(unittest.TestCase):
|
|
|
89
89
|
if os.getenv('UNITTEST_DATABASE') == 'mysql':
|
|
90
90
|
self.skipTest('MySQL does not allow indexing on LargeBinary fields, so caching is not possible')
|
|
91
91
|
dbtmp = DbCache(self.database_cache_uri)
|
|
92
|
-
srv = Service(cache_uri=self.database_cache_uri, exclude_providers=['
|
|
92
|
+
srv = Service(cache_uri=self.database_cache_uri, exclude_providers=['bitgo'])
|
|
93
93
|
t = srv.gettransaction('68104dbd6819375e7bdf96562f89290b41598df7b002089ecdd3c8d999025b13')
|
|
94
94
|
if t:
|
|
95
95
|
self.assertGreaterEqual(srv.results_cache_n, 0)
|
|
@@ -627,12 +627,12 @@ class TestService(unittest.TestCase, CustomAssertions):
|
|
|
627
627
|
|
|
628
628
|
def test_service_blockcount(self):
|
|
629
629
|
for nw in ['bitcoin', 'litecoin', 'testnet']: # ToDo: add testnet4 when more providers are available
|
|
630
|
-
srv = ServiceTest(min_providers=3, cache_uri='', network=nw, exclude_providers=['bitgo'
|
|
630
|
+
srv = ServiceTest(min_providers=3, cache_uri='', network=nw, exclude_providers=['bitgo'])
|
|
631
631
|
srv.blockcount()
|
|
632
632
|
n_blocks = None
|
|
633
633
|
delta = 200
|
|
634
|
-
if nw == 'testnet':
|
|
635
|
-
delta =
|
|
634
|
+
if nw == 'testnet': # Testnet 3 has frequent blockstorms causing delay in processing for various providers
|
|
635
|
+
delta = 25000
|
|
636
636
|
for provider in srv.results:
|
|
637
637
|
if n_blocks is not None:
|
|
638
638
|
self.assertAlmostEqual(srv.results[provider], n_blocks, delta=delta,
|
|
@@ -936,7 +936,7 @@ class TestServiceCache(unittest.TestCase):
|
|
|
936
936
|
self.assertGreaterEqual(srv.results_cache_n, 1)
|
|
937
937
|
|
|
938
938
|
def test_service_cache_transaction_coinbase(self):
|
|
939
|
-
srv = ServiceTest(cache_uri=DATABASE_CACHE_UNITTESTS2, exclude_providers=['
|
|
939
|
+
srv = ServiceTest(cache_uri=DATABASE_CACHE_UNITTESTS2, exclude_providers=['bitgo'])
|
|
940
940
|
t = srv.gettransaction('68104dbd6819375e7bdf96562f89290b41598df7b002089ecdd3c8d999025b13')
|
|
941
941
|
if t:
|
|
942
942
|
self.assertGreaterEqual(srv.results_cache_n, 0)
|
|
@@ -2393,8 +2393,8 @@ class TestWalletTransactions(unittest.TestCase, CustomAssertions):
|
|
|
2393
2393
|
w.utxo_add(w.get_key().address, 1234567, os.urandom(32).hex(), 1)
|
|
2394
2394
|
t = w.send_to('tb1qrjtz22q59e76mhumy0p586cqukatw5vcd0xvvz', 123456)
|
|
2395
2395
|
block_height = Service(network='testnet', cache_uri='').blockcount()
|
|
2396
|
-
#
|
|
2397
|
-
self.assertAlmostEqual(t.locktime, block_height+1, delta=
|
|
2396
|
+
# TODO: Replace with testnet4 / bitcoin test to avoid issues with testnet3 blockstorms
|
|
2397
|
+
self.assertAlmostEqual(t.locktime, block_height+1, delta=25000)
|
|
2398
2398
|
|
|
2399
2399
|
w2 = wallet_create_or_open('antifeesnipingtestwallet2', network='testnet', anti_fee_sniping=True,
|
|
2400
2400
|
db_uri=self.database_uri)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.7.2
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/config/__pycache__/__init__.cpython-310.pyc
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/config/__pycache__/secp256k1.cpython-310.pyc
RENAMED
|
File without changes
|
{bitcoinlib-0.7.2 → bitcoinlib-0.7.3}/bitcoinlib/config/__pycache__/secp256k1.cpython-38.pyc
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|