mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-12 09:38:08 +00:00
chore(common): refresh coins details
This commit is contained in:
parent
dc7f49aeea
commit
f0ede24bd7
File diff suppressed because it is too large
Load Diff
@ -105,7 +105,7 @@ def _webwallet_support(coin, support):
|
|||||||
"""
|
"""
|
||||||
if not support.get("webwallet"):
|
if not support.get("webwallet"):
|
||||||
return False
|
return False
|
||||||
return any(".trezor.io" in url for url in coin["blockbook"] + coin["bitcore"])
|
return any(".trezor.io" in url for url in coin["blockbook"])
|
||||||
|
|
||||||
|
|
||||||
def dict_merge(orig, new):
|
def dict_merge(orig, new):
|
||||||
|
@ -47,7 +47,7 @@ def init(api_key, refresh=None):
|
|||||||
while all_ids:
|
while all_ids:
|
||||||
first_100 = all_ids[:100]
|
first_100 = all_ids[:100]
|
||||||
all_ids = all_ids[100:]
|
all_ids = all_ids[100:]
|
||||||
time.sleep(1)
|
time.sleep(2.2)
|
||||||
print("Fetching metadata, {} coins remaining...".format(len(all_ids)))
|
print("Fetching metadata, {} coins remaining...".format(len(all_ids)))
|
||||||
metadata = call(
|
metadata = call(
|
||||||
"cryptocurrency/info", api_key, params={"id": ",".join(first_100)}
|
"cryptocurrency/info", api_key, params={"id": ",".join(first_100)}
|
||||||
|
Loading…
Reference in New Issue
Block a user