Commit Graph

115 Commits

Author SHA1 Message Date
Justin Turner Arthur 9a0aa9b478 Remove Python 2 support imports. 2017-11-13 02:26:48 -06:00
SomberNight c65d01ea96 file i/o: use 'with' keyword 2017-11-12 14:33:46 +01:00
ThomasV d4b1c66168
Merge pull request #2906 from SomberNight/polling_fees
Periodically poll fee estimates from server
2017-11-01 20:53:01 +01:00
ThomasV 198cc9d737 fix #2614: define non-linear scale for static fees 2017-10-21 11:15:59 +02:00
ThomasV 628a9e0521 follow up afcc37ec34 2017-10-13 10:56:59 +02:00
SomberNight 0510bdb85b fix: missing import 'stat' in network.py and simple_config.py 2017-10-12 08:04:55 +02:00
ThomasV e0635f5d08 Merge pull request #2320 from da2x/bugfixes
Tighten directory permissions
2017-10-10 20:11:26 +02:00
SomberNight f80d8b02ca Periodically poll fee estimates from server. 2017-09-21 01:19:05 +02:00
ThomasV 8c5b6bdaf3 Read default server list from file. Update list with 1.1 servers. Remove nolnet option. 2017-09-13 11:30:30 +02:00
ThomasV 216e9403be cleanup six (no python2 support) 2017-09-04 14:43:31 +02:00
ThomasV ab15ff3a00 updates for python3 2017-08-26 08:28:24 +02:00
Dmitry Sorokin 5be78950ca py3 2017-08-26 08:27:47 +02:00
ThomasV a22cf973b4 Revert "Only save config if value changed"
This reverts commit 47e062aa7e.
2017-08-15 12:55:53 +02:00
ThomasV 6a984ab9b6 Merge pull request #2720 from bauerj/config-skip-save
Only save config if value changed
2017-08-10 17:56:38 +02:00
Johann Bauer 47e062aa7e Only save config if value changed 2017-08-09 22:27:57 +02:00
ThomasV a13581e6db fix #2697 2017-08-06 09:55:49 +02:00
ThomasV 45bfd8cbae sanitize max_fee_rate; fixes #2663 2017-08-01 11:24:49 +02:00
Daniel Aleksandersen b7801d0374 Tighten directory permissions 2017-03-24 21:50:31 +01:00
ThomasV cb2d5ff3d6 raise special exception for dangling links 2017-03-14 08:56:30 +01:00
ThomasV 6977ba603b Merge pull request #2236 from kyuupichan/master
Add support for BU's nolnet
2017-03-06 12:28:45 +01:00
ThomasV cb709d8f57 fix tooltip fee estimate 2017-03-06 09:00:56 +01:00
ThomasV 83e925c0cd fix default dyn fees 2017-03-04 11:19:26 +01:00
Neil Booth 8888a50549 Add support for BU's nolnet
Also update testnet servers
Add missing self. in print_error call
2017-03-04 11:01:32 +09:00
ThomasV 9dde9971da do not revert to static fee when dynamic fee estimates are missing 2017-03-02 11:10:28 +01:00
ThomasV d99855f060 use ctypes to access the zbar library 2017-02-17 20:56:38 +01:00
ThomasV a2e7fc32ef Add fee slider class with network callback. 2017-01-09 12:36:15 +01:00
ThomasV d042d6e970 initial testnet support (petrkr) 2017-01-07 16:58:59 +01:00
ThomasV 8680eae86f detect dangling links 2016-05-30 10:53:52 +02:00
ThomasV 34a3af7ca3 don't display an error if the config file does not exist. assume it is JSON 2016-04-12 19:56:47 +02:00
ThomasV 80b1b2716c kivy: open last wallet 2016-03-08 11:10:04 +01:00
ThomasV 73822e8ec2 fix: pass cwd with config_options 2016-02-24 16:57:58 +01:00
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