Alex Grin
74116cc550
Merge branch 'master' into propagate_external_ip_change
2021-07-19 14:12:19 -04:00
belikor
b7791d2845
exchange_rate_manager: raise exception if 'error'
is in json_response
...
If the error is not handled, the running daemon will continuously
print the following error message:
```
Traceback (most recent call last):
File "lbry/extras/daemon/exchange_rate_manager.py", line 77, in get_rate
File "lbry/extras/daemon/exchange_rate_manager.py", line 189, in get_rate_from_response
KeyError: 0
```
This started happening when the UPBit exchange decided to delist
the LBC coin.
Normally `json_response` should be a dictionary, not a list,
so `json_response[0]` causes an error.
By checking for the `'error'` key, we can raise the proper exception.
Once this is done, the message will be a warning, not a traceback.
```
WARNING lbry.extras.daemon.exchange_rate_manager:92:
Failed to get exchange rate from UPbit: result not found
```
2021-07-19 13:41:49 -04:00
Victor Shyba
6254f53716
propagate external ip changes from upnp component to dht node protocol
2021-07-08 03:46:05 -03:00
Lex Berezhny
7d49b046d4
added support to config for determining if value is set and implemented hub selection logic
2021-06-22 11:07:58 -04:00
Victor Shyba
6c812f663e
drop value_type for support
2021-06-02 18:01:54 -03:00
Victor Shyba
bce299ccc7
fix docopt typo
2021-06-02 12:05:36 -04:00
Victor Shyba
67cce0ef7e
test+implement --comment for support_create
2021-06-02 12:05:36 -04:00
Lex Berezhny
fe469ae57f
create appropriate script for scripthash address
2021-06-02 11:34:21 -04:00
Victor Shyba
8c4b0037f5
API: add --remove_duplicates to claim_search
2021-05-27 20:14:12 -03:00
zeppi
2b950ff5dd
fix bug in collection_update --replace
2021-05-15 03:27:33 -03:00
Victor Shyba
7554e6d7f9
remove dead code
2021-05-07 15:02:31 -03:00
Victor Shyba
cb8f26f177
remove broken feed
2021-05-07 15:02:31 -03:00
Victor Shyba
fb77fde710
for debug, it is always whole page
2021-05-04 22:22:07 -03:00
Victor Shyba
3c67bb90d7
don't fail when a single one go on maintenance and set completion event regardless of failures
2021-05-04 22:22:07 -03:00
Victor Shyba
dabb168853
dont log full exceptions on simple connection errors
2021-05-04 22:22:07 -03:00
Victor Shyba
45e5b3b219
dont log full pages
2021-05-04 22:22:07 -03:00
Lex Berezhny
3d4321ee38
added --has_source/--has_no_source filters to claim_list
2021-04-23 10:24:48 -04:00
Lex Berezhny
f8814881a1
ability to set sd_hash, file_name and file_hash when updating a stream claim
2021-04-14 19:52:50 -04:00
Lex Berezhny
6acf94a810
moved balance calculation to SQL
2021-04-14 11:24:58 -04:00
Lex Berezhny
ff30386051
lint
2021-04-06 21:22:27 -04:00
shubhendra
be0ba22222
Remove unnecessary comprehension
...
Signed-off-by: shubhendra <withshubh@gmail.com>
2021-04-06 21:22:27 -04:00
Lex Berezhny
c8781392be
added unit test for Access-Control HTTP headers
2021-04-06 17:12:05 -04:00
John Leith
b97164fcfb
adding access control headers
2021-04-06 17:12:05 -04:00
Victor Shyba
74df4fab83
change column to has_source and document both flags
2021-03-14 10:11:42 -04:00
Victor Shyba
74660704e3
fix update
2021-03-14 10:11:42 -04:00
Victor Shyba
e27e49e9dc
call update only once
2021-03-14 10:11:42 -04:00
Victor Shyba
34ed729c59
there is no 'sd_hash' parameter for this API
2021-03-14 10:11:42 -04:00
Victor Shyba
adaeeca3fd
let file_path be optional
2021-03-14 10:11:42 -04:00
Jack Robison
dac75563d3
add --no_file_path param to publish
, stream_create
, and stream_update
2021-03-14 10:11:42 -04:00
Alex Grintsvayg
cbc76adcaa
only return unspent txos if is_spent flag is not used. fixes #2923
2021-03-13 06:44:20 -05:00
Lex Berezhny
7bb873dad9
removed connection_status field from the status command, use wallet.connected instead to determine if SDK is connected
2021-03-09 13:27:36 -05:00
Lex Berezhny
fcad76fc51
lint
2021-03-04 00:03:16 -05:00
Lex Berezhny
97e6e1684e
simplifying
2021-03-04 00:03:16 -05:00
zeppi
183fb9f9ff
provide --resolve tag for collection claim, separate from resolving its contents
...
bugfix and docs generation
review changes
2021-03-04 00:03:16 -05:00
Lex Berezhny
0cec80f676
fixes transaction signing bug when tx had no change outputs
2021-03-01 11:20:08 -05:00
Patrick Keane
48c64143e3
Add no_totals argument to claim search
2021-02-26 10:41:15 -05:00
Patrick Keane
a8712422bc
Update daemon.py
2021-02-21 23:45:18 -05:00
Lex Berezhny
b153e4bb9f
added support to claim_search for filtering collections via --claim_type
2021-02-16 11:08:54 -05:00
Lex Berezhny
db9856a8db
use median exchange rate when several exchange rates are available
2021-02-15 14:09:32 -05:00
Lex Berezhny
f1cb7d27ac
lint
2021-02-10 22:14:13 -05:00
Lex Berezhny
dee494e12f
converting from USD, BTC to LBC is now done via several exchange rate providers: Bittrex, Cryptonator, CoinEx, hotbit and UPbit
2021-02-10 22:14:13 -05:00
Lex Berezhny
7486ee9537
do not tx._reset() in generate_channel_private_key
2021-02-08 09:56:03 -05:00
Lex Berezhny
4a20ccc28e
tx._reset() the transaction after more internal changes
2021-02-08 09:56:03 -05:00
Lex Berezhny
f80dd2b307
tx._reset() the transaction after internal changes
2021-02-08 09:56:03 -05:00
Lex Berezhny
b208cf6d32
significant performance improvement when creating transactions and with txo spend specifically
2021-02-08 09:56:03 -05:00
Lex Berezhny
39e78ff17e
updated exchange rate manager to use v3 bittrex API (old one is deprecated)
2021-02-03 14:15:19 -05:00
Alex Grin
bedcfc154b
Merge branch 'master' into fix-collectionChannel
2021-02-02 11:25:52 -05:00
Victor Shyba
f6cfe266e0
specify Returns correctly for docs gen
2021-02-01 19:19:46 -05:00
zeppi
aca57ffc62
allows cli to accept channel_id for collections
2021-01-26 10:02:01 -05:00
Jack Robison
a6d65233f1
fallback to getting external ip from spv servers instead of internal apis
2021-01-21 16:20:53 -05:00