Commit Graph

491 Commits

Author SHA1 Message Date
ThomasV 671fe73788 set KIVY_DATA_DIR in main script 2016-03-08 04:55:58 +01:00
ThomasV 100ff51cc4 add import for pyinstaller 2016-02-24 19:16:59 +01:00
ThomasV c26f898a4f add import for pyinstaller 2016-02-24 19:12:38 +01:00
ThomasV 73822e8ec2 fix: pass cwd with config_options 2016-02-24 16:57:58 +01:00
ThomasV 305843999e Relicensing 2016-02-24 10:20:30 +01:00
ThomasV 51ca7a056b minor fixes 2016-02-05 08:56:23 +01:00
ThomasV 9efbb57766 init plugins only if needed 2016-02-01 22:09:55 +01:00
ThomasV ddc1869551 disambiguate types returned by get_fd_or_server 2016-02-01 13:10:01 +01:00
ThomasV 690c862923 move static methods away from daemon class; restore initial logic 2016-02-01 10:20:22 +01:00
ThomasV 3b00f62d46 remove another unnecessary static method 2016-02-01 09:25:57 +01:00
ThomasV 1c83c3e060 do not declare pointless static methods 2016-02-01 09:12:53 +01:00
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.
2016-01-31 11:43:11 +09:00
Neil Booth f6f7113978 daemon: create network inside constructor 2016-01-31 10:58:27 +09:00
ThomasV ed401761f1 sorry, confused
This reverts commit 5e6a55edd5.
2016-01-30 11:24:53 +01:00
ThomasV 5e6a55edd5 Revert "Revert "Daemon network cleanup""
This reverts commit 2c7b10a776.
2016-01-30 11:13:11 +01:00
ThomasV 2c7b10a776 Revert "Daemon network cleanup"
This reverts commit 0a1b3eac9c.
2016-01-29 17:37:56 +01:00
Neil Booth 58d5215e2e No need to pass daemon and network together
The daemon has the network
2016-01-29 22:25:59 +09:00
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.
2016-01-29 22:14:50 +09:00
ThomasV 307ec36d34 Merge branch 'master' of git://github.com/spesmilo/electrum 2016-01-29 09:29:19 +01:00
ThomasV 81b9f8281d fix #1656 2016-01-29 09:29:07 +01:00
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.`
2016-01-28 14:05:36 -08:00
ThomasV 6a833d9f98 electrum: check_imports 2016-01-28 14:38:10 +01:00
akshayaurora 900346b89e kivy:Improve startup speed 2016-01-27 20:21:20 +05:30
ThomasV 80c1aab9c3 remove is_kivy test 2016-01-26 15:23:33 +01:00
Neil Booth 93e0c72ce2 Plugins: start thread at end of constructor
Don't add jobs twice
2016-01-24 19:59:58 +09:00
Neil Booth 028ab925ed Remove unused imports 2016-01-24 19:52:37 +09:00
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')
2016-01-24 19:39:59 +09:00
ThomasV e5aa543707 fix #1622 2016-01-10 21:00:41 +01:00
ThomasV 62868ab29a Register loaded wallets in daemon, to prevent a wallet from being opened twice.
Simplify the wizard logic.
2016-01-06 00:58:43 +01:00
Neil Booth d63e754c67 Remove some unused hook infrastructure 2016-01-01 19:15:01 +09:00
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.
2015-12-23 15:59:32 +01:00
ThomasV 93573282bf fix wallet saving 2015-12-23 15:23:33 +01:00
ThomasV acbe67fd1f separation between RPC and non-RPC commands. 2015-12-23 10:54:31 +01:00
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.
2015-12-20 15:47:46 +09:00
ThomasV 23868d5769 commands that require wallet require daemon now 2015-12-15 10:39:25 +01:00
ThomasV 74a9e2296c separate Network and Plugins 2015-12-03 11:18:10 +01:00
ThomasV c7b1721f58 fix cmdline trezor 2015-12-01 12:00:18 +01:00
ThomasV 3c11c63289 fix daemon: don't oad wallet if there is a gui 2015-11-30 10:23:38 +01:00
ThomasV 4682d95a76 merge jsonrpc gui and daemon 2015-11-30 10:09:54 +01:00
ThomasV 39af17bc23 load wallets in daemon 2015-11-28 15:37:51 +01:00
ThomasV 00f298d3b1 revert e9c101f 2015-11-27 15:39:31 +01:00
ThomasV e9c101f0c8 daemon: use daemon threads 2015-11-27 09:54:01 +01:00
ThomasV d8ca881457 remove unused setting 2015-11-25 19:09:32 +01:00
ThomasV 1207ad3ba4 fix: websocket uses network object 2015-11-25 10:48:34 +01:00
ThomasV 2934fd17be fix websockets 2015-11-25 10:32:46 +01:00
ThomasV b727824eed fix #1554: use AF_INET instead of AF_UNIX, and write port number to lockfile 2015-11-19 12:42:11 +01:00
ThomasV 7641137ecc simplify get_daemon 2015-11-19 11:05:49 +01:00
ThomasV bb7b0884e3 Various fixes for command line. Make 'payto' command require network (fixes #1525) 2015-10-29 11:06:09 +01:00
ThomasV 079cb311ec call wallet.wait_until_synchronized before commands 2015-10-29 05:01:06 +01:00
ThomasV 826c44e500 restore initial indentation 2015-10-28 11:13:45 +01:00