Commit graph

110 commits

Author SHA1 Message Date
ThomasV
0e49274eae fix #2279: jsonrpc wallet 2017-03-11 10:26:26 +01:00
ThomasV
0f8387dbab fix #2257 2017-03-08 11:56:01 +01:00
ThomasV
411832c4ce cleanup storage and fix tracvis test 2017-03-06 08:33:35 +01:00
ThomasV
eb7f9c98ce command:s inherit fee estimates from daemon 2017-03-05 20:33:36 +01:00
ThomasV
76dd11783b rename load_wallet command 2017-03-05 20:32:06 +01:00
ThomasV
f99fbbe488 show fee in daemon status 2017-03-05 16:12:47 +01:00
ThomasV
b8bdcc0877 rename open close commands 2017-03-05 14:57:41 +01:00
ThomasV
45f25586ef add file selector and password dialog to wizard (fix #1730) 2017-03-05 13:30:57 +01:00
ThomasV
fcc92c1ebd Wallet file encryption:
- a keypair is derived from the wallet password
 - only the public key is retained in memory
 - wallets must opened and closed explicitly with the daemon
2017-03-01 13:58:04 +01:00
ThomasV
be15b76c9b allow client daemon to be launched in the foreground (fix #1873) 2017-01-07 10:10:51 +01:00
ThomasV
13678d9e13 Merge exchange_rate plugin with main code
* fixes #2037 (tab indexes)
2017-01-03 17:04:04 +01:00
ThomasV
bfe7e9dc6e add version to daemon status, simply display number of spv nodes 2016-10-24 12:52:16 +02:00
ThomasV
3127fbd0c2 we need to check requires_split first, and get_action at the end 2016-10-02 12:30:57 +02:00
ThomasV
34c90a257b follow-up 2016-10-02 12:17:53 +02:00
ThomasV
d52e3f65e6 follow-up 2016-10-02 12:17:08 +02:00
ThomasV
5541c1bec6 check requires_split before upgrade 2016-10-02 12:15:51 +02:00
ThomasV
da65e9e7d5 auto-upgrade wallet format 2016-09-29 10:52:51 +02:00
ThomasV
af2bf1955a trigger upgrade on android 2016-08-26 07:09:38 +02:00
ThomasV
71de14240d daemon: default rpchost to 127.0.0.1 2016-08-15 08:27:09 +02:00
ThomasV
f61d8b4c24 daemon: handle rpc server init errors 2016-08-15 08:14:19 +02:00
ThomasV
1159f85e05 Major refactoring
- separation between Wallet and key management (Keystore)
 - simplification of wallet classes
 - remove support for multiple accounts in the same wallet
 - add support for OP_RETURN to Trezor plugin
 - split multi-accounts wallets for backward compatibility
2016-08-12 11:02:28 +02:00
ThomasV
c313c3c340 remove forgotten imports and print statements 2016-06-24 23:14:41 +02:00
ThomasV
e7d25faf02 Finish wizard unification 2016-06-24 23:02:54 +02:00
ThomasV
bbe7b277d2 call jnius.detach on thread stop 2016-06-04 12:59:01 +02:00
ThomasV
caf2f321e0 follow up 4efa6cb24b 2016-04-08 12:49:21 +02:00
ThomasV
4efa6cb24b load default wallet in daemon (fix #1731) 2016-04-06 10:41:01 +02:00
ThomasV
305843999e Relicensing 2016-02-24 10:20:30 +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
ThomasV
56c7d4139e fix: Daemon.get_server 2016-02-01 09:02:57 +01:00
Neil Booth
abaf1bc6dc daemon: remove two unneeded member vars 2016-01-31 18:03:50 +09:00
Neil Booth
a90c935758 Remove unreachable code 2016-01-31 14:53:25 +09:00
Neil Booth
788ab520ea Remove dead code from prior 2016-01-31 14:48:57 +09:00
Neil Booth
e6020975a5 daemon: prevent races by opening with O_EXCL
Rework the way the daemon and server are created.  If we might
want to create a daemon, try to grab the lockfile with O_EXCL.
If we got it, create a server and daemon, otherwise try and
connect to the server.  If connecting to the server fails (including
after sleeping a little in case the server was recently created),
remove the lockfile and start over.

Other fix: shut down network gracefully on daemon exit.

Fixes #1638
2016-01-31 14:46:03 +09:00
Neil Booth
f91f03b3d4 daemon: fix long-standing bug in status request
Gracefully handle a status request when self.network is None
2016-01-31 11:50:44 +09: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
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
388ed01d0f fix start_threads in wizard 2016-01-13 15:02:58 +01:00
ThomasV
2f6e2ebcd2 test if wizard is needed in daemon 2016-01-13 14:30:09 +01:00
Neil Booth
4c9b224d4c Put open_wallet back as class method. 2016-01-13 20:56:44 +09:00
ThomasV
ef1f649d58 fix missing parameter 2016-01-13 11:31:23 +01:00
ThomasV
632905dfbe instantiate wizard only if needed 2016-01-13 11:27:17 +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
ThomasV
acbe67fd1f separation between RPC and non-RPC commands. 2015-12-23 10:54:31 +01:00