ThomasV
7f870f5e09
replace daemon 'start' subdommand with -d
5 years ago
ThomasV
e79253b5e0
Syntax change: Require --offline to run commands without a daemon.
That makes the syntax less ambiguous. It also makes it possible to
implement a CLI that does not import all the electrum modules.
5 years ago
ThomasV
0702338912
main script: rm init_daemon (dead code), call sys_exit in init_cmdline
5 years ago
ThomasV
10e186c1d3
revert ed086934e5
(this does not work well with travis)
5 years ago
ThomasV
ed086934e5
In 'daemon start', do not return until the daemon can be reached
5 years ago
ThomasV
9cfeadea70
Turn daemon subcommands into RPCs
5 years ago
ThomasV
4397767a5e
minor fix
5 years ago
ThomasV
2e1829bc24
remove jsonrpclib dependency
5 years ago
ThomasV
54257cbcca
Rewrite JsonRPC requests using asyncio.
- commands are async
- the asyncio loop is started and stopped from the main script
- the daemon's main loop runs in the main thread
- use jsonrpcserver and jsonrpcclient instead of jsonrpclib
5 years ago
ThomasV
5e0427392f
Daemon: Replace get_server with request.
This function performs a single RPC, and may raise a DaemonNotRunning exception.
5 years ago
ThomasV
b81feb6550
daemon: simplify get_fd_or_server
5 years ago
ThomasV
842fff832f
enable lightning through command line option
6 years ago
ThomasV
626d09b358
add 'recḱless' option to allow using lightning on mainnet
6 years ago
ThomasV
3fd3b2a74d
disable lightning on mainnet
7 years ago
ThomasV
62e6ca50e1
do not log client-side RPC executions
6 years ago
SomberNight
7cba46c317
deprecation warnings: only show when running from source
6 years ago
SomberNight
6940c424d1
logging: cli options to filter for modules using -v
old style "-v" still works
filtering examples:
-v=debug,network=error,interface=error // effectively blacklists network and interface
-v=warning,network=debug,interface=debug // effectively whitelists network and interface
6 years ago
SomberNight
3385a94753
logging: basics
6 years ago
cluelessperson
4d64e132d7
standardized logging base with ISO8601, UTC, rotating file logs, and more!
6 years ago
SomberNight
4f70da6e15
make sure DeprecationWarnings are shown
6 years ago
ThomasV
13f3f71125
daemon: in detached modde, redirect strandard file descriptors
6 years ago
SomberNight
0de954546a
test python version in main script
for better error text on old python
related: #5008 , #5129
6 years ago
SomberNight
8b775fd24a
contrib: import 'requests' in try-except
6 years ago
SomberNight
78f5afff74
use certifi directly instead of requests
6 years ago
SomberNight
386e0d560e
wizard,hw: tell user about errors during plugin init
see #4817 (issuecomment-434765570)
6 years ago
SomberNight
c4e09fa874
simplify Plugins constructor
6 years ago
SomberNight
1233309ebd
cli/rpc: 'restore' and 'create' commands are now available via RPC
6 years ago
SomberNight
02f108d927
restructure synchronizer
fix CLI notify cmd. fix merchant websockets.
6 years ago
SomberNight
7dd4032cce
daemon: call self.start in __init__, and allow not to listen on jsonrpc
6 years ago
ThomasV
3ec0ceba3e
add option to leave daemon running after GUI is closed
6 years ago
SomberNight
e829d6bbcf
wallet: put Sync and Verifier in their own TaskGroup, and that into interface.group
6 years ago
Janus
b120584f97
aiorpcx address synchronizer
7 years ago
SomberNight
6ee689345f
fix -v syntax
After the introduction of arguments for -v, it would sometimes incorrectly consume the CLI cmd as its argument.
This change keeps the old "-v" syntax working, at the cost of having to provide the arguments without a whitespace directly after -v (and the args need to be single letters).
6 years ago
Janus
780b2d067c
Whitelist classes in verbose (-v) option
7 years ago
Janus
1e715113ab
remove pbkdf2 dependency, use stdlib instead
7 years ago
Janus
1cc1c8a051
restructuring: add missing import
7 years ago
Janus
097ac144d9
file reorganization with top-level module
7 years ago
Janus Troelsen
4f85615734
add simnet support ( #4455 )
7 years ago
Filip Gospodinov
61154794c8
electrum: cleanup plugin imports
`electrum_plugins` is imported in the `electrum` script
without being used - I assume it's done to make PyInstaller
find that package. But this can be achieved by avoiding
the usage of `__import__()` when importing `electrum_plugins`
where it's effectively used.
7 years ago
Dimitris Apostolou
989c9c2b55
Fix typos
7 years ago
fivepiece
b4d71e651b
add regtest support ( #4242 )
* add regtest support
* set default regtest ssl and tcp ports to 51002 and 51002
* regtest inherits parameters from testnet
7 years ago
SomberNight
7b50790584
do not raise BaseException
7 years ago
ThomasV
08e7a5f05f
remove pyjnius thread monkey patching; now in pyjnius
7 years ago
SomberNight
0f5cabc7f6
fix #4122
7 years ago
SomberNight
81b6d65764
refactor network constants
7 years ago
SomberNight
8951dc3120
restore cmd: stop wallet threads
while "restore" does not wait for verifier to finish, this will at least ensure that whatever has been verified, gets persisted
7 years ago
SomberNight
4cc2575d72
cli support for hw encrypted wallets
7 years ago
Johann Bauer
91e44ba6fc
Show error window for unhandled exceptions
Use exception hook from main thread for all threads
Use signal to delegate error window creation to GUI thread
Add more information to issue template
Update to PyQt5
Switch from Github to REST-Service
Report to web service instead of opening the browser
Fix imports
Change crashhub URL to electrum.org server
Explain that exception hooks are only used in the Qt Gui now
8 years ago
SomberNight
c811c5c9d9
allow encrypting watch-only wallets. initial support for hw wallet storage encryption.
7 years ago
SomberNight
a58d01ed54
setconfig rpcpassword: don't try to evaluate or reencode
7 years ago