Commit Graph

124 Commits

Author SHA1 Message Date
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
thomasv 41cd3484c8 remove format conversion; unneeded since new protocol 2012-11-09 11:02:26 +01:00
ThomasV ff9e643dc6 fix: init_path 2012-11-05 17:25:38 +01:00
thomasv 5a212b8648 print -> print_error 2012-11-05 14:26:35 +01:00
thomasv cda3f603bd default_wallet_file configuration string 2012-11-05 14:02:28 +01:00
ThomasV 2a06a5b493 tie confirmation icons to payment verifier 2012-10-26 00:40:19 +02:00
ThomasV e5c19b64af handle empty string (!= None) 2012-10-23 22:40:52 +02:00
ThomasV 8668e923ce update message: cannot change -> not changing 2012-10-18 22:13:09 +02:00
ThomasV cdf81f370b save config after checking qt version 2012-10-13 07:38:22 +02:00
ThomasV 799654dd74 catch NoSectionError in simple_config 2012-10-12 21:31:30 +02:00
ThomasV 9f36ef3931 fix: call read_wallet_config only if there is a wallet_path value in options 2012-10-12 20:42:45 +02:00
thomasv 65b13b88f4 disable setting widgets when setting is not modifiable. 2012-10-12 17:40:37 +02:00
thomasv d2832563e4 improved warning message 2012-10-12 16:38:56 +02:00
thomasv 8d0b81a3b7 system config file is read-only, user config file can be written 2012-10-12 14:44:56 +02:00
thomasv 5e76b8caab fix type for settings in configuration file 2012-10-12 11:26:30 +02:00
thomasv d25724a621 simplify read_common_config. do not break loop so that we read both files 2012-10-12 09:35:09 +02:00
ThomasV ca3fa8c6dd cleanup 2012-10-11 22:27:48 +02:00
ThomasV d0c8a48274 encapsulate parse_proxy_options 2012-10-11 21:37:02 +02:00
ThomasV f0556bb0d3 rename conf file section as 'client'. add gui to conf 2012-10-11 21:07:49 +02:00
thomasv 5444f55e6b big refactoring: command line options and electrum.conf options override settings in wallet file. 2012-10-11 20:10:12 +02:00
thomasv da9351260c move proxy fallback away from send method 2012-10-10 10:16:18 +02:00
thomasv fd13d19cb8 fix proxy issues: override config with command line option, and use interface.proxy in gui 2012-10-09 15:48:06 +02:00
Maran 23ffbc3e48 Fixed merged conflict and added folder creation on first load 2012-09-21 16:57:54 +02:00
bkkcoins 4c65822f32 merged current branches 2012-09-21 13:05:37 +07:00
bkkcoins 3007d95ceb Added code to remember window position 2012-09-21 10:53:14 +07:00
bkkcoins 8244768654 Changed how load_config works so it always supports new config vars 2012-09-21 04:48:03 +07:00
bkkcoins 09c90c0971 Revert "Revert "Added proxy options to network dialog""
This reverts commit 6e0b3620d2.
2012-09-20 16:55:28 +07:00
bkkcoins 6e0b3620d2 Revert "Added proxy options to network dialog"
This reverts commit 83bb644135.
2012-09-20 16:55:15 +07:00
Amir Taaki 15eb4d7cb8 reformat simple_config to comply with electrum and create config dir if it doesnt exist. 2012-09-19 16:47:39 +01:00
bkkcoins 83bb644135 Added proxy options to network dialog 2012-09-19 22:29:58 +07:00
bkkcoins aa6f631f2e Added SOCKS support, with cmdline and SimpleConfig options 2012-09-19 17:37:20 +07:00
Samuel Tardieu 593b2552d1 Do not qualify relative imports
This is unneeded and fails while installed.
2012-09-07 11:27:00 +02:00
Maran 6da25727f8 Refactored user_dir to utils and replaced it in wallet and config 2012-08-30 18:00:08 +02:00
Maran fbf854bcb8 Added a set_key setter method that can also write out the changes to file 2012-08-30 17:52:03 +02:00
Maran 3252b5ae4e Added SimpleConfig class to deal with simple config options added for fallback to other gui when missing deps 2012-08-30 00:03:38 +02:00