Commit Graph

175 Commits

Author SHA1 Message Date
ThomasV 679efe2a66 don't use floats because of rounding errors 2015-12-15 11:33:04 +01:00
ThomasV 0cef063ee2 add payment requests to kivy 2015-12-11 15:21:21 +01:00
Neil Booth 53f6fb9876 Add a GC debugger
Add commented-out GC debugging step
2015-11-14 10:47:44 +09:00
ThomasV bb7b0884e3 Various fixes for command line. Make 'payto' command require network (fixes #1525) 2015-10-29 11:06:09 +01:00
ThomasV ab1714e9f2 socket errno 11: raise timeout instead of looping 2015-10-18 09:23:44 +02:00
ThomasV 5a5cc97045 fix base type of PrintError; it must be object, since it is inherited by wallets 2015-10-01 12:38:46 +02:00
Richard Ulrich c5f833a107 added tor onion address for Blockchain explorer 2015-09-30 12:03:05 +02:00
ThomasV f3bd1662f7 fix web request server. fixes #1455 2015-09-30 11:06:27 +02:00
Neil Booth 93b99ebded Handy new class PrintError
Saves adding "def print_error" to endless classes.
2015-09-06 21:40:00 +09:00
Neil Booth 1171a25815 Genericize plugin handling of thread jobs
Move it to the Plugins class so all plugins get it for
free.
2015-09-05 17:21:28 +09:00
Neil Booth 9da22000b6 More improvements to exchange_rate plugin
- better historical rate handling, including caching
- grabbing and scanning wallet transactions no longer needed
- fix autosize of fiat column
- more efficient
2015-09-05 14:05:37 +09:00
qua-non 1179a4cf9e manage exchange plugins, make sure ui doesn't stall while saving seed
and numerous other small fixes.
2015-09-03 14:18:22 +02:00
ThomasV 4655c5f565 Fix SocketPipe:
* add errcode 35 for BSD
* in addition, add a very long timeout to command line pipe, in order to prevent that exception to be raised.
2015-09-03 10:47:57 +02:00
ThomasV e3b7239d19 fix SocketPipe for returning empty array 2015-09-03 10:09:25 +02:00
Neil Booth 56654ec4e9 Introduce thread job framework.
This is a cleaner generalization of the functionality added
to network_proxy.py a few months ago, whereby jobs can be
added and removed from a thread's main loop.  This allows
us to cut down on unnecessary threads.

A follow-up patch will update the proxy to this framework.
2015-08-26 16:41:12 +09:00
ThomasV 5f413aca1c rm unneeded float conversion 2015-08-07 14:36:43 +02:00
Roman Zeyde 87d3fafa22 util: fix small typo at parse_URI() and update its unittests 2015-07-25 12:41:37 +03:00
Neil Booth 0f2d4bd375 Add bitflyer.jp block explorer 2015-07-24 15:17:15 +09:00
ThomasV a6c65b8997 change internal format of requests 2015-07-21 12:26:37 +02:00
ThomasV 2c1fb1e37c do not raise exception if uri has an unknown key 2015-07-21 11:54:45 +02:00
ThomasV e77f0c98e7 extend bitcoin: URI with signature data, instead of serialized format 2015-07-21 11:40:55 +02:00
ThomasV 9c30ad3dd5 extend bitcoin URIs with signed payment requests passed directly 2015-07-18 18:42:56 +02:00
Neil Booth e7ea3e5d01 Add two more block explorers
chain.so and biteasy.com
2015-07-15 20:58:19 +09:00
Neil Booth 677f235e4b Fix typo. 2015-07-14 09:00:59 +09:00
ThomasV 6fa7f57f10 express expiration dates in natural language 2015-07-13 20:47:11 +02:00
ThomasV 616becd9a8 move openalias from plugins to core 2015-07-02 12:44:53 +02:00
ThomasV 118052d815 v2.4 will require protocol v0.10 2015-06-27 15:22:34 +02:00
Roman Zeyde 90076b0b79 util: add print_msg() method to DaemonThread
it is used by at synchornizer.py, line 173
2015-06-13 16:58:08 +03:00
ThomasV ba78093e2e getalias: no check 2015-06-11 12:08:38 +02:00
Neil Booth 2f2e468d0a SocketPipe shouldn't close the socket.
This is a layering violation - the SocketPipe doesn't own
the socket and provides no other way to close the socket, leading
to unnecessary complexity like that in interface.py.

I looked at deamon.py and NetworkProxy - the two other users,
and they don't close the sockets explicitly, just let them be
garbage collected.
2015-06-04 16:30:59 +09:00
ThomasV fc23b0f490 fix #1274 2015-06-03 14:18:49 +02:00
ThomasV 34360bddfb add missing definition of COIN 2015-06-03 10:25:21 +02:00
Neil Booth 03e53a5e01 Create a constant for 100000000 and use it
Use same name as is in bitcoind.
Note that one of the constants in text.py had the wrong number
of zeroes previously...
2015-06-01 14:53:36 +09:00
ThomasV a3cd33fe03 add option to disable dnssec 2015-05-31 16:43:27 +02:00
ThomasV c006678289 fix indent 2015-05-31 15:00:43 +02:00
ThomasV 5a76a0fc95 hook openalias plugin to command line interface 2015-05-31 14:42:16 +02:00
ThomasV ee5f499fc1 use contacts in command line 2015-05-31 14:10:52 +02:00
Neil Booth e5d243e08c Fix nasty bug in amount editors
str() can convert amounts to scientific notation
2015-05-27 17:14:40 +09:00
Neil Booth d09d5e5dac Plain number formatting for URIs. 2015-05-22 14:32:47 +09:00
ThomasV 8c07bdc3bc do not timeout if interface is receiving data 2015-05-08 17:45:59 +02:00
ThomasV bbaacef960 fix format_satoshis for None values 2015-05-02 15:12:00 +02:00
ThomasV 953674aac7 resize columns to content by default 2015-04-29 09:26:22 +02:00
Neil Booth 4f45e0a083 Prior lost minus sign for fractional negative numbers 2015-04-29 15:09:55 +09:00
Neil Booth 0d35dd66d2 The lite GUI passes a decimal type 2015-04-29 14:48:55 +09:00
Neil Booth 83e05b1183 Modify format_satoshis to display amounts according to locale.
In particular, thousands and decimal point separators are taken from locale.
2015-04-29 10:13:41 +09:00
Neil Booth deec78a9d4 Clean up block explorer handling. Add menu item to go to block explorer for an address.
Block explorer code is data-driven now.
Put block explorer defaulting in one place.
Fix URLs for insight.is and blockr.io.
Add tradeblock.com explorer.
Add menu item to view address on block explorer provided only one is selected.
2015-04-26 22:02:21 +09:00
ThomasV e8189490e9 store contacts in a separate file, shared between wallets 2015-04-23 12:16:46 +02:00
ThomasV 4c729f0ff0 move format_time to util 2015-04-03 14:44:03 +02:00
ThomasV f051a3e577 update occurences of get_history 2015-03-30 20:17:24 +02:00
ThomasV d82529a41a function profiler 2015-03-17 11:29:17 +01:00
ThomasV a4cb70649d fix synchronizer hanging when not connected. 2015-03-14 08:43:43 +01:00
ThomasV 72688a5cfa clean implementation of daemon threads 2015-03-13 23:04:29 +01:00
ThomasV 0f3c5ad4b1 parse_URI: utf8 decode 2015-02-25 21:13:59 +01:00
ThomasV f92c3cadf0 fix utf8 encode in create_URI 2015-02-25 20:17:03 +01:00
ThomasV c7f89da934 copy request URI to clipboard 2015-02-25 10:01:59 +01:00
ThomasV 80284d5516 updates for the old android GUI 2015-02-24 18:45:09 +01:00
ThomasV 56dc9f7f80 cleanup dead code 2015-02-21 08:48:15 +01:00
ThomasV e389745491 remove appdata_dir and data_dir 2015-02-18 18:48:32 +01:00
ThomasV 4eda748506 fix #991 2015-01-28 08:24:51 +01:00
Maran fd8a931608 Make where() work with OSX app bundles
MEIPASS is PythonInstaller specific and won't work for py2app

	modified:   lib/util.py
	modified:   .gitignore
	modified:   lib/util.py
	modified:   setup-release.py
2015-01-27 12:32:23 +01:00
ThomasV 9d40fb2ea8 detect if we are in a pyinstaller bundle 2015-01-26 16:53:59 +01:00
ThomasV ceaa48fd73 fix #948 2014-12-21 13:04:07 +01:00
ThomasV 63c7a27d7e add InvalidPassword exception 2014-12-03 22:35:05 +01:00
ThomasV 01cf04079f add NotEnoughFunds exception 2014-11-20 19:10:43 +01:00
ThomasV b8a5d4146d Do not use XDG_DATA_HOME. Tell user to use virtualenv if they are not root 2014-10-23 21:25:14 +02:00
Tafelpoot d9c5250a6f removed trailing whitespace and fixed indentation in history widget 2014-10-21 19:05:51 +02:00
ThomasV 0606a30804 move wordlists to data dir 2014-09-13 09:58:11 +02:00
ThomasV 44072a4f48 separate interface classes 2014-07-29 09:28:27 +02:00
ThomasV 8e5fbadc58 socket error handling 2014-07-28 22:35:49 +02:00
ThomasV 28df27fba2 update interface.py 2014-07-28 00:13:40 +02:00
ThomasV 035ecbc7cd redo inter-thread communication using pipes 2014-07-27 17:13:46 +02:00
ThomasV 9efc25bdba interface: use parse_json 2014-07-26 16:24:22 +02:00
Michael Wozniak 09154fdf20 Shouldn't redo URI encoding 2014-06-30 11:10:50 -04:00
Michael Wozniak 8ad7a5a085 Update tests and fix URI parsing
Update URI parsing for BIP0072 compatability
Update tests for parse_URI
2014-06-30 10:41:12 -04:00
ThomasV f43ddf1d8f parse_URI: amount is in satoshis 2014-06-15 09:26:52 +02:00
ThomasV 58c302a4cf minor fixes 2014-06-13 16:08:46 +02:00
ThomasV 6f3c9e6a44 unify util.parse_URI 2014-06-13 16:02:30 +02:00
ThomasV e8a5070948 fix parse_url 2014-05-07 18:34:00 +02:00
ThomasV 87fa402c34 support for payment requests in the gui 2014-05-07 15:26:38 +02:00
ThomasV bb88c891dc move set_url to __init__. fixes #672 2014-04-30 07:59:59 +02:00
ThomasV 696766c370 json-friendly debug messages. fix #659 2014-04-17 17:20:07 +02:00
Michael Wozniak 8874242fa7 Bitcoin URL Handling
Update Bitcoin URL handling to reject URLs with duplicate keys

issue: #649
2014-04-12 12:19:42 -04:00
Fynn cc13dd25b3 Accept FreeBSD OS 2014-04-10 11:37:58 -03:00
ThomasV 9230482870 set default verbosity to false, because of daemon 2014-03-16 12:13:52 +01:00
ThomasV 7963f22a80 parse_url: parse exponents 2014-01-08 14:08:53 +01:00
bitcoindaddy 637ad52907 Add OpenBSD support to util.py
Recognize OpenBSD platform
2014-01-04 18:57:12 -05:00
Michael Wozniak 433a3ba0fe Mac OSX bitcoin: URI updates 2013-11-13 05:59:36 -06:00
ThomasV df76aac2db fix bug with hex_to_int; remove unused function 2013-11-12 10:14:29 +01:00
Bryan Stitt 91061752cf stop using eval 2013-11-11 22:03:20 -08:00
Bryan Stitt f0eb0eccde replace BaseException with Exception 2013-11-09 20:21:02 -08:00
Zomnut d9c595fca8 Fix for the built-in raw_input not redirectin properly without readlin loaded on Unix systems (http://bugs.python.org/issue1927) 2013-10-07 16:12:35 -04:00
thomasv b00175d00d update android interface 2013-10-07 20:11:41 +02:00
ThomasV 1be0ea1494 remove check_windows_wallet_migration 2013-10-03 14:00:57 +02:00
ThomasV f957837e21 custom json encoder for transactions 2013-09-14 21:53:56 +02:00
ThomasV d51a8d0f25 create a class for transaction dialog 2013-09-14 21:07:54 +02:00
ThomasV d2b86091b4 whitespaces option in format_satoshis 2013-07-13 20:19:52 +02:00
ecdsa 25bbae132f option to display mBTC 2013-04-07 14:29:13 +02:00
thomasv 93b98e1176 move http aliases to separate plugin 2013-03-15 15:48:28 +01:00
thomasv b4bb3c7449 Merge branch 'master' of github.com:spesmilo/electrum 2013-02-20 13:10:38 +01:00
thomasv 972ba397d1 support for multisig functions 2013-02-20 13:10:32 +01:00