Alex Liebowitz
da0b4e9a1a
Fix typo in set_settings API method
2016-12-30 05:00:28 -05:00
Job Evers-Meltzer
2c7fc3fb46
switch startup sequence to use inlineCallbacks
...
This cleans up the process, makes it more readable,
and better surfaces errors.
2016-12-28 11:21:10 -06:00
Job Evers-Meltzer
fc24d9b5aa
pull out metadata storage from the wallet
2016-12-28 11:18:55 -06:00
Jack Robison
c0f22decd7
Merge pull request #347 from lbryio/log-error-on-lbry-files
...
Log failure when attempting to get_lbry_files
2016-12-19 16:22:37 -05:00
Jack
618d0ebd5b
newline
2016-12-19 13:40:33 -05:00
Jack
f301741807
re-use lbryid
2016-12-19 13:27:45 -05:00
Jack
5a76a03cb6
remove unqlite requirement
...
-conditionally import PTCWallet (needed for testing, requires unqlite)
-install unqlite on travis and appveyor
2016-12-17 20:03:35 -05:00
Jack
09846413bd
remove Settings.py
...
remove old settings class, which was only used for the lbryid and
required unqlite.
this allows the daemon startup to be simplified, it previously relied
on Settings in a few places. lbryid had been stored in the old
settings, this initializes it at startup.
2016-12-17 20:01:06 -05:00
Job Evers-Meltzer
d5d0d0e31c
change error log on resolve-name to info
2016-12-16 19:51:10 -06:00
Job Evers-Meltzer
53df361d23
Log failure when attempting to get_lbry_files
...
I had an old version of lbryum installed and so no
names were coming back. But the daemon was failing
silently. This at least logs the error.
2016-12-16 00:32:06 -06:00
Job Evers‐Meltzer
3dde7af576
Merge pull request #339 from lbryio/all-prs
...
All The PRs
2016-12-15 19:42:35 -06:00
Job Evers-Meltzer
fec917b9c1
rename platform to system_info
2016-12-15 18:58:16 -06:00
Job Evers-Meltzer
fa8190356a
replace log_support.failure calls
2016-12-15 18:58:15 -06:00
Kay Kurokawa
965f8f1238
removing unused get_transaction function from daemon and wallet
2016-12-15 10:28:49 -05:00
Job Evers-Meltzer
14ac2bac39
pylint: fix trailing-whitespace
2016-12-14 19:21:59 -06:00
Jeremy Kauffman
32fa2460ff
sort the help functions
2016-12-14 19:21:54 -06:00
Kay Kurokawa
bce41ddab4
Do not return 'success' and 'reason' as outputs in claim commands
...
We throw an Exception instead
2016-12-14 19:05:05 -06:00
Job Evers-Meltzer
e8faadc324
fix more long lines
2016-12-07 10:10:46 -05:00
Job Evers-Meltzer
b64fa51567
fixup long lines
2016-12-07 09:38:34 -05:00
Jack
979f8efa79
remove unused lbrynet-console
2016-12-06 12:35:27 -05:00
Jack
8cb0f99e30
fix pylint errors
2016-12-06 12:22:43 -05:00
Umpei Kay Kurokawa
6076861cd0
Merge pull request #304 from kaykurokawa/remove_lbrycrd
...
Remove lbrycrdd
2016-12-06 12:06:09 -05:00
Jack
b9bb337a07
add tests for daemon.get_est_cost
2016-12-05 11:48:44 -05:00
Jack
d93f86030c
clean up get_est_cost functions
2016-12-05 11:48:44 -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
Jack Robison
13d74d1f76
Merge pull request #297 from lbryio/better-name-error
...
Provide better feedback on why a name is invalid
2016-12-02 12:08:58 -05:00
Kay Kurokawa
200a22c93b
Remove support for lbrycrdd wallet and related code
2016-12-01 16:45:48 -05:00
Alex Liebowitz
157d6dca93
Save settings in conf.py
2016-12-01 15:22:52 -05:00
Alex Liebowitz
7b1b7fbf13
Call conf.settings.get_dict() in jsonrpc_get_daemon_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
Job Evers-Meltzer
f39a21cf7b
Provide better feedback on why a name is invalid
2016-12-01 11:02:37 -06:00
Jack
051e63d76b
don't allow 0 bid
2016-11-29 20:17:06 -05:00
Job Evers‐Meltzer
9140c95a0c
Merge pull request #291 from lbryio/fix-pylint
...
fix pylint errors
2016-11-28 15:32:16 -06:00
Job Evers-Meltzer
6f2e2e727e
fix pylint errors
2016-11-28 13:33:34 -06:00
Jack Robison
48b137fe4c
Merge pull request #287 from lbryio/version-add-lbry-id
...
get_lbry_session_info
2016-11-28 14:26:43 -05:00
Jack
a6326ee7a1
get_lbry_session_info
2016-11-28 14:16:21 -05:00
Jack
bfcd84a568
use nOut in addition with txid to identify claims
2016-11-25 16:59:23 -05:00
Alex Liebowitz
4cb2a8f2aa
Include LBRY ID in version() API method result
2016-11-23 20:29:45 -05:00
Alex Liebowitz
9d272befcd
Convert length of shortened plaintext LBRY ID to constant
2016-11-23 20:28:16 -05: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
Kay Kurokawa
896a16c15d
fix spelling mistake for auto connect
2016-11-19 19:29:58 -05:00
Alex Liebowitz
e03db79f79
Always return array from jsonrpc_get_lbry_files()
...
Before, would return false when there were no files in the DB.
2016-11-16 23:57:02 -05:00
Alex Grintsvayg
7ecc8103d8
improve error analytics
...
- move analytics creation earlier in the startup process
- add several events to track startup, startup failure, other errors
- abstract platform detection into separate file
- add "build" type to platform so we can differentiate devs vs live users
2016-11-15 10:31:35 -05:00
Alex Grintsvayg
6b72b4de11
use constants for wallet types
2016-11-15 10:31:35 -05:00
Job Evers‐Meltzer
8e1ad0aa8b
Merge pull request #270 from lbryio/survive-lbry-down
...
Bug fix: continue even if log fails to upload
2016-11-15 08:48:05 -06:00
Job Evers-Meltzer
b300afb504
Bug fix: continue even if log fails to upload
...
lbry.io being down caused lbrynet to die when uploading a log.
2016-11-14 20:16:34 -06:00
Job Evers-Meltzer
abc7b11e26
remove repeated code for reflector
2016-11-14 19:33:36 -06:00
Jack
472bb6af1b
remove unused lighthouse search from daemon
2016-11-11 13:43:58 -05:00
Jack
7f96e35b0e
clean up daemon imports and settings var name
2016-11-11 13:42:51 -05:00
Job Evers‐Meltzer
66745b0820
Merge pull request #242 from lbryio/shutdown-issues
...
Shutdown issues
2016-11-09 08:17:13 -06:00
Job Evers-Meltzer
affb7d837a
better logging, cleanup whitespace
2016-11-09 08:16:08 -06:00
Job Evers-Meltzer
5bccfdb244
add logging to shutdown process
2016-11-03 14:42:45 -05:00
Job Evers-Meltzer
10cb20d08f
fix whitespace and long-lines
2016-11-03 14:22:16 -05:00
Job Evers‐Meltzer
dcea8a8c78
Merge pull request #236 from lbryio/better-log-and-kill
...
More robustly stop the reactor
2016-11-02 07:36:21 -05:00
Job Evers-Meltzer
815696485f
More robustly stop the reactor
...
Was getting a "cannot stop a reactor that isn't running error"
when playing around with error handling on startup.
Following the suggestion from http://stackoverflow.com/a/36738480
it seems to work better
2016-11-02 07:23:37 -05:00
Job Evers-Meltzer
c0d96a5733
fix bug in jsonrpc_get_settings
2016-11-01 15:39:51 -05: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
f03a15d503
remove unneeded 'after_first_run' check
2016-10-30 14:46:16 -05:00
Job Evers-Meltzer
dee0917642
various fixes
2016-10-28 16:57:25 -05:00
Job Evers-Meltzer
353ede26b8
Log error when resolve name fails
2016-10-28 16:03:58 -05:00
Job Evers-Meltzer
779ba8e214
Fix missing conf imports
2016-10-28 15:43:04 -05:00
Job Evers-Meltzer
6f9ec2fa66
remove repeated log code
2016-10-28 15:43:04 -05:00
Job Evers-Meltzer
40437e4a82
log cleanup
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
2cd6c644a0
Merge remote-tracking branch 'origin/master' into refactor-settings
...
Conflicts:
lbrynet/lbrynet_daemon/Daemon.py
lbrynet/lbrynet_daemon/DaemonControl.py
lbrynet/lbrynet_daemon/DaemonServer.py
2016-10-27 10:34:48 -05:00
Job Evers-Meltzer
0edacbe4c8
Merge remote-tracking branch 'origin/master' into refactor-settings
...
Conflicts:
lbrynet/conf.py
lbrynet/lbrynet_daemon/Daemon.py
lbrynet/lbrynet_daemon/DaemonCLI.py
lbrynet/lbrynet_daemon/UIManager.py
tests/functional/test_misc.py
2016-10-27 10:18:56 -05:00
Jack
127987f3ba
upload log if lbry id is not yet set, clean up crash log
2016-10-26 17:39:47 -05:00
Job Evers-Meltzer
3c7eec9456
raise error if database is newer
2016-10-26 17:39:46 -05:00
Job Evers-Meltzer
5d45345398
shutdown if there are errors during setup
2016-10-26 17:39:43 -05:00
Jack
24320d6444
remove debug line
2016-10-26 03:22:45 -04: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
Job Evers-Meltzer
4d391e7429
Use better json formatting
...
Apply json.dumps at the end of the formatting process instead of the
middle. This allows for proper escaping of quotes and allows for
actual json to be emitted.
2016-10-25 17:49:35 -05:00
Job Evers-Meltzer
a5797cdeb3
Better handling of lbry file search
...
- replace lbry file search strings with constants
- refactor repeated code for deciding what search type to use
2016-10-20 16:01:54 -07:00
Job Evers-Meltzer
0c2265a8da
replace some strings
2016-10-20 11:30:38 -07:00
Job Evers-Meltzer
7f800ce5bb
fix rebase error
2016-10-20 11:29:58 -07:00
Job Evers-Meltzer
7167d47631
bug fixes
2016-10-20 11:29:58 -07:00
Job Evers-Meltzer
8b1bb673c1
report available blobs
2016-10-20 11:29:58 -07:00
Job Evers-Meltzer
ddb88eb1c9
move LoopingCallManager to own module
2016-10-20 11:29:58 -07:00
Job Evers-Meltzer
4a07b56e8a
refactor analytics manager to use dependency injection
2016-10-20 11:28:05 -07:00
Job Evers-Meltzer
f9f07c47e2
move analytics manager
2016-10-20 11:28:05 -07:00
Job Evers-Meltzer
f5213fb77a
GetFileHelper bug fixes
2016-10-20 11:28:05 -07:00
Job Evers-Meltzer
48a61605de
bug fix: looping calls
2016-10-20 11:28:05 -07:00
Job Evers-Meltzer
b71a3fee43
add tracked metrics reporting to analytics
2016-10-20 11:28:05 -07:00
Job Evers-Meltzer
9416376a34
refactor: add GetFileHelper
...
Move the code related to getting a lbry file into
its own class
2016-10-20 11:26:10 -07:00
Job Evers-Meltzer
d0a82c68df
move analytics related calls into their own class
2016-10-20 11:25:17 -07:00
Job Evers-Meltzer
93e2b3e20a
Extract some looping call code out of the daemon
2016-10-20 11:25:17 -07:00
Jack
3f5efb1fa3
fix problems in blobrequester
...
-also move is_generous_host into a conf setting
2016-10-20 01:35:18 -04:00
Jack Robison
d4aa109b73
Merge pull request #193 from lbryio/check-remote-conn
...
Use lbry.io instead of google to check for internet connection
2016-10-19 15:06:33 -04:00
Jack
22fc26797d
pylint fixes
2016-10-19 14:40:01 -04:00
Jack
06a88599df
--http-auth flag to use authentication, refactor settings
...
settings will prefer, in order:
-defaults
-settings in config file
-settings given as environmental variables
-settings given as command line args
2016-10-19 00:12:44 -04:00
Jack
03877f7ebd
remove str
2016-10-18 17:11:45 -04:00
Job Evers
6b7d575e95
use lbry.io to check for an internet connection
2016-10-17 20:11:08 -05:00
Job Evers
640db41555
only need lbrycrdd_path when using lbrycrdd
2016-10-17 19:58:04 -05:00
Jack
d860c2a2b4
make publish fail when given an invalid file
...
otherwise a less obvious error is returned in
lbrynet_daemon.Publisher.Publisher._show_publish_error
2016-10-17 14:25:36 -04:00
Jack
a8a581d35c
Merge branch 'master' into auth-jsonrpc
...
# Conflicts:
# lbrynet/conf.py
# lbrynet/core/Error.py
# lbrynet/lbrynet_daemon/Daemon.py
# lbrynet/lbrynet_daemon/DaemonControl.py
# lbrynet/lbrynet_daemon/ExchangeRateManager.py
2016-10-14 18:25:37 -04:00
Alex Liebowitz
0dd9aa0d67
Update error that daemon catches for malformed metadata
...
Now jsonschema.ValidationError instead of AssertionError
2016-10-14 10:37:19 -04:00
Job Evers-Meltzer
e647663c34
Fix error when version is None
...
Logs were reporting:
Failure instance: Traceback: <type 'exceptions.AttributeError'>: StrictVersion instance has no attribute 'version'
/Volumes/LBRY/LBRY.app/Contents/Resources/lib/python2.7/lbrynet/lbrynet_daemon/DaemonServer.py:121:requestReceived
twisted/web/server.pyc:183:process
twisted/web/server.pyc:234:render
/Volumes/LBRY/LBRY.app/Contents/Resources/lib/python2.7/lbrynet/lbrynet_daemon/Daemon.py:450:render
--- <exception caught here> ---
twisted/internet/defer.pyc:150:maybeDeferred
/Volumes/LBRY/LBRY.app/Contents/Resources/lib/python2.7/lbrynet/lbrynet_daemon/Daemon.py:1561:jsonrpc_version
/Volumes/LBRY/LBRY.app/Contents/Resources/lib/python2.7/lbrynet/core/utils.py:39:version_is_greater_than
distutils/version.pyc:140:__cmp__
2016-10-14 10:35:17 -04:00
Jack Robison
32a973943f
Merge pull request #173 from lbryio/blob-prices
...
Blob prices
2016-10-13 14:59:26 -04:00
Jack
19c2264429
clean up
2016-10-13 13:35:55 -04:00
Jack
50e5a59420
remove unused imports
2016-10-07 17:29:20 -04:00