Job Evers-Meltzer
8f61fb3fc4
Initialize settings, along with lbryid and session_id on startup
2016-12-30 13:05:19 -06:00
Job Evers-Meltzer
39b2e44492
Replace settings with conf.settings
...
In the next commit I change conf.settings to be initialized
at runtime instead of load time and so any import of
`from lbrynet.conf import settings` will be and stay None if
it happens before the initialization.
2016-12-30 13:05:18 -06:00
Job Evers-Meltzer
fa29c92760
Add setting to disable reuploading to reflector
2016-12-15 18:58:16 -06:00
Job Evers-Meltzer
14ac2bac39
pylint: fix trailing-whitespace
2016-12-14 19:21:59 -06:00
Job Evers-Meltzer
e8faadc324
fix more long lines
2016-12-07 10:10:46 -05:00
alexliebowitz
39005ffc14
Merge pull request #310 from lbryio/allow-cors-config
...
allow Access-Control-Allow-Origin to be configurable
2016-12-06 15:11:38 -05:00
Jack Robison
28e88d89a5
Merge pull request #313 from lbryio/config-bittrex
...
Add bittrex to conf
2016-12-06 12:41:45 -05:00
Jack Robison
4c4bccfe73
Merge pull request #312 from lbryio/local-ui-conf
...
local_ui_path needs to be a str
2016-12-06 12:23:45 -05:00
Umpei Kay Kurokawa
6076861cd0
Merge pull request #304 from kaykurokawa/remove_lbrycrd
...
Remove lbrycrdd
2016-12-06 12:06:09 -05:00
Job Evers‐Meltzer
8b427a92ac
Merge pull request #311 from lbryio/fix-server-port
...
port needs to be an int
2016-12-06 09:48:08 -05:00
Job Evers-Meltzer
8f80e8a3da
add bittrex to conf
2016-12-05 17:14:25 -05:00
Job Evers-Meltzer
cd44ae02a3
__getattr__ should call __getattribute__
2016-12-05 17:06:45 -05:00
Job Evers-Meltzer
848f1f025c
local_ui_path needs to be a str
2016-12-05 16:29:18 -05:00
Job Evers-Meltzer
d2cc8355dc
port needs to be an int
2016-12-05 16:20:16 -05:00
Job Evers
ee00d1984a
allow Access-Control-Allow-Origin to be configurable
2016-12-05 15:34:48 -05:00
Jack
d9e1e88c05
refactor get_est_cost
...
-add size parameter, if provided the sd blob won’t be downloaded (can
be used with size information from lighthouse)
-check if blob was already downloaded before trying to download it again
2016-12-05 11:48:43 -05:00
Alex Liebowitz
7d0e9f6ab9
Tweak logic in ApplicationSettings
...
Use self.environ instead of ENVIRONMENT to avoid global reference
2016-12-01 23:51:58 -05:00
Kay Kurokawa
200a22c93b
Remove support for lbrycrdd wallet and related code
2016-12-01 16:45:48 -05:00
Alex Liebowitz
458561fe6f
In AdjustableSettings, initialize all keys on init
...
Settings.update() method expects keys to already be present, so load
them all up front
2016-12-01 15:22:52 -05:00
Alex Liebowitz
876cdce51f
Add Config.get_dict()
...
We don't want the version from DefaultSettings, so use super() to get
the standard functionality from conf.Settings.
2016-12-01 15:22:51 -05:00
Alex Liebowitz
205a10bc8e
Refactor how adjustable settings are pulled out of config.settings
...
- Factor out this functionality into separate method
- Change the set_settings() JSON-RPC method to use this (before, it was
just returning all fields, which doesn't work anymore after the
settings refactor)
2016-12-01 15:22:51 -05:00
Alex Liebowitz
ef8d1cfdc2
Rename var in Settings.update()
2016-12-01 15:22:51 -05:00
Alex Liebowitz
879c01ba00
Add separate list of excluded fields to AdjustableSettings
...
Adds "environ" field. Also renames __excluded to _excluded so it can
be overridden by child classes.
2016-12-01 15:22:44 -05:00
Job Evers-Meltzer
6a8789050c
Allow 0.0.0.0 for api interface
...
For a host to be able to access the daemon running inside a docker
container the damon needs to be listening to 0.0.0.0
- move the API_INTERFACE setting to the adjustablesettings
- check the port matches as well as the interface
2016-11-28 19:19:05 -06:00
Jack
bfcd84a568
use nOut in addition with txid to identify claims
2016-11-25 16:59:23 -05:00
Job Evers
91fb78b077
Update TODO with more useful info
2016-11-22 18:14:41 -06:00
Job Evers-Meltzer
464bd11c3a
Improve parsing of environment variables
...
Switch adjustable settings to use the envparse library. This
provides more flexible and robust parsing.
2016-11-22 18:14:36 -06:00
Job Evers-Meltzer
7a76763610
rename Setting to Settings
2016-11-22 16:03:37 -06:00
Job Evers-Meltzer
02d2bad03f
allow json to be used to set settings
2016-11-22 16:03:37 -06:00
Jack
0a9ef07787
Merge branch 'master' into error-messages
...
# Conflicts:
# lbrynet/lbrynet_daemon/Daemon.py
# lbrynet/lbrynet_daemon/auth/server.py
2016-11-22 15:44:47 -05:00
Alex Grintsvayg
6b72b4de11
use constants for wallet types
2016-11-15 10:31:35 -05:00
Jack
472bb6af1b
remove unused lighthouse search from daemon
2016-11-11 13:43:58 -05:00
Jack Robison
5ea945ca0b
Merge pull request #249 from lbryio/settings-bugs
...
fix --wallet argument bug, use .json conf file if not given a .yml file
2016-11-09 16:53:46 -05:00
Alex Grin
9d82be6664
that server's not up anymore
2016-11-09 10:13:36 -05:00
Jack
297865902b
use json conf file if not given yml
2016-11-05 14:23:48 -04:00
Job Evers-Meltzer
0036685ece
use more readable KB, MB
2016-11-04 11:44:50 -05:00
Jack
c748572bf6
feedback from job
2016-11-02 11:32:46 -04:00
Jack
660bf74d42
fix missing conf file on first run
2016-11-02 10:41:47 -04:00
Job Evers‐Meltzer
b316b56885
Merge pull request #234 from lbryio/unicode-settings
...
download directory and ui bug fixes for windows
2016-11-02 07:19:51 -05:00
Job Evers-Meltzer
c0d96a5733
fix bug in jsonrpc_get_settings
2016-11-01 15:39:51 -05:00
Jack
2294e6bf36
Merge branch 'master' into unicode-settings
2016-11-01 13:06:20 -04:00
Jack
d1b23e25d9
allow unicode settings
2016-11-01 12:53:04 -04:00
Job Evers-Meltzer
30533a7986
Read config file in windows and osx
...
Also moves the config loading to BEFORE the log configuration
2016-11-01 11:14:04 -05:00
Job Evers-Meltzer
359cb83fab
change windows log file location
2016-10-30 10:46:58 -05:00
Job Evers-Meltzer
dee0917642
various fixes
2016-10-28 16:57:25 -05:00
Job Evers-Meltzer
395a68b261
For settings: On conversion failure, fallback to default values
2016-10-28 16:29:16 -05:00
Job Evers-Meltzer
6f9ec2fa66
remove repeated log code
2016-10-28 15:43:04 -05:00
Job Evers-Meltzer
862055a6de
move settings into conf file
2016-10-27 14:31:27 -05:00
Job Evers-Meltzer
7076c0c870
Require env settings are in LBRY namespace
2016-10-27 11:05:21 -05:00
Jack
1951ea09cd
updates from master, more refactoring
...
-lbrynet.lbrynet_daemon.auth.client.LBRYAPIClient.config will detect if
it needs to return the auth/non-auth version
2016-10-26 03:16:33 -04:00