Commit graph

84 commits

Author SHA1 Message Date
Neil Booth
5f28834bb2 Trezor: session timeout improvements
Move session timeout from wallet to config
Prevent timeouts whenever a device operation is in progress
Move timeout job from each plugin to device manager
2016-02-10 21:59:41 +09:00
ThomasV
a04b510395 fix: don't chmod config file on android 2016-01-28 14:43:12 +01:00
Neil Booth
11d135b32d Better install wizard
Break out the workflow logic of the install wizard
into a base class.  This means reimplementing with
full support in a new GUI is now easy; you just provide
ways to request passwords, show messages etc.  The API
is fully documented in the base class.

There are a couple of minor outstanding issues, including that
the old messages shown when recovering a wallet are missing.
I will come back to that.  Ledger wallet might be broken.

Other improvements:

The install wizard code is now easy to follow and understand.
Hardware wallets can now be restored without any need for their
accompanying libraries.
Various bits of trustedcoin were broken and have been fixed.
Many plugin hooks can be removed.  I have only started on this.
2016-01-01 16:48:18 +09:00
ThomasV
a735fbabe0 print config path in debug message 2015-09-10 11:01:58 +02:00
ThomasV
7becb28ec8 Merge pull request #1246 from kyuupichan/bug_fix
e20dfc unintentionally inverted portable condition
2015-05-25 13:28:42 +02:00
Neil Booth
e63ac88c77 e20dfc unintentionally inverted portable condition
This wasn't noticed because the test was also broken.
2015-05-25 16:59:16 +09:00
Neil Booth
39fe24b4d3 Rename auto_cycle to auto_connect in config
User config is updated if appropriate.
Add tests behaviour is as expected.
Just the one rename-it reference to auto_cycle remains.
2015-05-25 16:18:52 +09:00
ThomasV
d5f6651237 follow up e20dfcd3eb 2015-05-25 08:47:25 +02:00
Neil Booth
e20dfcd3eb Fix SimpleConfig
SimpleConfig claims to handle configuration options in priority
command line, user config, system config, which makes sense.
In fact it appears it used priority command line, system config,
user config.
Also, from the priority ordering, it would seem correct that a
value should be unmodifiable if and only if it's set on the command
line.  Previously anything in the system config would be unmodifiable.

This patch fixes these and cleans the code up a bit.  I noticed this
whilst attempting to unify the 'auto_cycle' setting.

Fixup tests accordingly.
2015-05-25 15:16:19 +09:00
ThomasV
233fd8ed77 revert 175bfae9e6. store last known height in wallet instead 2015-05-08 13:43:42 +02:00
ThomasV
c2a4252065 do not pass config to storage. request height from network_proxy if connected 2015-05-08 10:58:54 +02:00
Neil Booth
175bfae9e6 Move away from requiring network and blockchain objects to be able to request local height.
We store it in the config object instead of in the blockchain object.
The blockchain object now refers to its config, and calls refresh_height() to update it.
The network objects also refer to the config rather than the blockchain.

This is the first of many small steps to untangle the verifier from stored state and so
permit the history tab to work in offline mode.  The refactoring will simultaneously clean
up a lot of accumulated cruft.
2015-05-03 15:19:29 +09:00
ThomasV
881e15ae12 store config as json 2015-04-02 10:00:07 +02:00
ThomasV
935a9a980d disable auo-connect is --server option is passed. fixes #992 2015-01-30 10:19:22 +01:00
Chris Glass
99a31b0c6a Fixes previously introduced bug
The passed in command line options were saved to the user config.
2014-06-26 13:22:02 +02:00
Chris Glass
34f0a65c49 Added more tests for user config parsing. 2014-06-26 11:08:13 +02:00
Chris Glass
ad3640d7a4 Added tests for the system config function. 2014-06-26 10:08:00 +02:00
Chris Glass
221fa5848f System config should never be None 2014-06-25 20:33:04 +02:00
Chris Glass
5eeae69425 Added more tests for edge cases. 2014-06-25 18:04:37 +02:00
Chris Glass
fff3ed9b77 Added a lot of tests for SimpleConfig
Refactored the SImpleConfig class a lot to make sure the behavior is
always defined.
2014-06-25 17:34:51 +02:00
ThomasV
c07c1c58ed access to global configuration using set_config and get_config 2014-06-17 12:03:41 +02:00
ThomasV
e699ab6660 coin control: select UTXOs in menu 2014-06-05 21:55:11 +02:00
ThomasV
5a89734d6c do not raise an error if user config file is corrupted 2014-06-03 16:16:43 +02:00
Zomnut
712ef8c93b Fix for resetting options to default on program start when in portable mode. 2013-11-29 09:50:54 -05:00
Bryan Stitt
225d8b83a3 don't use bare except 2013-11-09 21:23:57 -08:00
ThomasV
f340f08a6e fix for portable version: use its own directory 2013-11-05 23:02:51 +01:00
ThomasV
c45fa4860f android interface update and minor fixes 2013-10-08 13:10:38 +02:00
ThomasV
e82653f454 add locks to config and storage 2013-09-29 18:33:54 +02:00
thomasv
48efc62b2d simplify directories: electrum_dir 2013-09-02 15:05:33 +02:00
ThomasV
1ba3008b49 minor fixes 2013-09-01 23:25:28 +02:00
ThomasV
d99a381d83 separation between wallet storage and config 2013-09-01 15:26:52 +02:00
ThomasV
b983d12929 restore old accounts from seed 2013-08-31 15:02:20 +02:00
ThomasV
19553a056d bip32 2013-08-07 22:54:21 +02:00
rdymac
ff523790df typo
typo
2013-06-17 01:21:22 +02:00
ecdsa
b2c23f9ac8 deprecate wallet.save() and 'eval' command 2013-05-02 10:54:48 +02:00
Maran
2973f5d2c3 more label sync wip 2013-03-10 21:23:04 +01:00
ThomasV
5aa18c4bb5 prevent the creation of incomplete wallets 2013-02-27 23:07:30 +01:00
ThomasV
c7edba0990 currency conversions (bkkcoins) 2013-01-05 15:23:35 +01:00
thomasv
bd96815eb3 command line option for portable wallets 2012-12-17 15:08:34 +01:00
thomasv
50064d20fd Revert "added TypeError category to existing exception"
This reverts commit 86da219fb9.
2012-11-19 14:12:49 +01:00
thomasv
ae1f1ee8ea indentation 2012-11-19 13:59:56 +01:00
thomasv
8f7ca499d9 fix indentation error 2012-11-19 13:56:25 +01:00
Jimbo77
74ed5acf7d added docstring for is_modifiable() 2012-11-18 22:56:32 -08:00
Jimbo77
c4955ebddd wrote basic SimpleConfig docstring 2012-11-18 22:29:32 -08:00
Jimbo77
86da219fb9 added TypeError category to existing exception 2012-11-18 20:32:21 -08:00
Jimbo77
4a85b9db62 wrote docstring for get() 2012-11-18 20:30:56 -08:00
Jimbo77
0c29027f96 created docstring for read_user_config() 2012-11-18 18:58:35 -08:00
Jimbo77
71a4bb0198 created docstring for read_system_config() 2012-11-18 18:52:42 -08:00
Jimbo77
49ac4d73e3 changed a couple exceptions to describe import errors 2012-11-18 16:56:17 -08:00
ThomasV
2d13107897 make a regular gui module for android 2012-11-18 11:34:52 +01:00