ThomasV
100ff51cc4
add import for pyinstaller
9 years ago
ThomasV
c26f898a4f
add import for pyinstaller
9 years ago
ThomasV
73822e8ec2
fix: pass cwd with config_options
9 years ago
ThomasV
305843999e
Relicensing
9 years ago
ThomasV
51ca7a056b
minor fixes
9 years ago
ThomasV
9efbb57766
init plugins only if needed
9 years ago
ThomasV
ddc1869551
disambiguate types returned by get_fd_or_server
9 years ago
ThomasV
690c862923
move static methods away from daemon class; restore initial logic
9 years ago
ThomasV
3b00f62d46
remove another unnecessary static method
9 years ago
ThomasV
1c83c3e060
do not declare pointless static methods
9 years ago
Neil Booth
ec24087b5a
Move some logic from electrum to daemon
Ultimate goal is to try and stop the daemon race at startup.
Need to isolate logic of checking for server and creating one.
9 years ago
Neil Booth
f6f7113978
daemon: create network inside constructor
9 years ago
ThomasV
ed401761f1
sorry, confused
This reverts commit 5e6a55edd5
.
9 years ago
ThomasV
5e6a55edd5
Revert "Revert "Daemon network cleanup""
This reverts commit 2c7b10a776
.
9 years ago
ThomasV
2c7b10a776
Revert "Daemon network cleanup"
This reverts commit 0a1b3eac9c
.
9 years ago
Neil Booth
58d5215e2e
No need to pass daemon and network together
The daemon has the network
9 years ago
Neil Booth
0a1b3eac9c
Daemon network cleanup
All Daemon creation was preceded by Network creation, based on
config, and passing it to Daemon.
As config is passed to Daemon, it might as well create its own
network and the code is in one place.
9 years ago
ThomasV
81b9f8281d
fix #1656
9 years ago
valesi
f7dfffd30f
Minor fixes - indentation and lone `self.`
6ba43637f5/electrum (L57)
has tab instead of spaces.
6ba43637f5/gui/kivy/nfc_scanner/scanner_android.py (L118)
has lone `self.`
9 years ago
ThomasV
6a833d9f98
electrum: check_imports
9 years ago
akshayaurora
900346b89e
kivy:Improve startup speed
9 years ago
ThomasV
80c1aab9c3
remove is_kivy test
9 years ago
Neil Booth
93e0c72ce2
Plugins: start thread at end of constructor
Don't add jobs twice
9 years ago
Neil Booth
028ab925ed
Remove unused imports
9 years ago
Neil Booth
dee402b961
Plugin wallets: better error when unloadable
Used to get:
jsonrpclib.jsonrpc.ProtocolError: (-32603, u'Server error: File "src/electrum/lib/plugins.py", line 144, in wallet_plugin_loader | KeyError: \'trustedcoin\'')
Now get:
jsonrpclib.jsonrpc.ProtocolError: (-32603, u'Server error: File "src/electrum/lib/plugins.py", line 81, in load_plugin | RuntimeError: cmdline implementation for trustedcoin plugin not found')
9 years ago
ThomasV
e5aa543707
fix #1622
9 years ago
ThomasV
62868ab29a
Register loaded wallets in daemon, to prevent a wallet from being opened twice.
Simplify the wizard logic.
9 years ago
Neil Booth
d63e754c67
Remove some unused hook infrastructure
9 years ago
ThomasV
fb8f9e55ef
Cleanup main script, with semantic changes:
The --offline flag applies only to GUI.
Commands must use the daemon if a daemon is running, otherwise they are run offline.
Commands that only require the wallet do not have the require_network flag.
9 years ago
ThomasV
93573282bf
fix wallet saving
9 years ago
ThomasV
acbe67fd1f
separation between RPC and non-RPC commands.
9 years ago
Neil Booth
e1c0298fc2
Write the wallet less often
This should speed up synchronization / restoration of large wallets.
Wallets are written only when they switch to up_to_date state, or
when stop_threads() is called when closing the daemon, or when
a command line command finishes.
9 years ago
ThomasV
23868d5769
commands that require wallet require daemon now
9 years ago
ThomasV
74a9e2296c
separate Network and Plugins
9 years ago
ThomasV
c7b1721f58
fix cmdline trezor
9 years ago
ThomasV
3c11c63289
fix daemon: don't oad wallet if there is a gui
9 years ago
ThomasV
4682d95a76
merge jsonrpc gui and daemon
9 years ago
ThomasV
39af17bc23
load wallets in daemon
9 years ago
ThomasV
00f298d3b1
revert e9c101f
9 years ago
ThomasV
e9c101f0c8
daemon: use daemon threads
9 years ago
ThomasV
d8ca881457
remove unused setting
9 years ago
ThomasV
1207ad3ba4
fix: websocket uses network object
9 years ago
ThomasV
2934fd17be
fix websockets
9 years ago
ThomasV
b727824eed
fix #1554 : use AF_INET instead of AF_UNIX, and write port number to lockfile
9 years ago
ThomasV
7641137ecc
simplify get_daemon
9 years ago
ThomasV
bb7b0884e3
Various fixes for command line. Make 'payto' command require network ( fixes #1525 )
9 years ago
ThomasV
079cb311ec
call wallet.wait_until_synchronized before commands
9 years ago
ThomasV
826c44e500
restore initial indentation
9 years ago
ThomasV
142b5532ec
revert to previous restore method, without daemon
9 years ago
ThomasV
ca9eb50821
dont create wallet instance twice
9 years ago