Commit Graph

200 Commits

Author SHA1 Message Date
ThomasV
828b0e5d70 fix #2439 2017-06-30 12:11:47 +02:00
ThomasV
ca220d8dbb Detect blockchain splits and validate multiple chains 2017-06-21 09:48:31 +02:00
ThomasV
2fa25c3f56 fix get_payment_request 2017-05-19 09:10:19 +02:00
Johann Bauer
8f94dda48e Add BlockCypher.com as a block explorer 2017-05-01 21:27:14 +02:00
spamdaemon
a17624931d Fixed a syntax error with python 3.6
This fixes this error:
raceback (most recent call last):
  File "/usr/bin/electrum", line 98, in <module>
    from electrum import bitcoin, network
  File "/usr/lib/python3.6/site-packages/electrum/__init__.py", line 2, in <module>
    from util import format_satoshis, print_msg, print_error, set_verbosity
  File "/usr/lib/python3.6/site-packages/electrum/util.py", line 537
    except socket.error, err:

Also, other exceptions in this file use the except X as Y syntax.
2017-04-21 13:48:29 -04:00
ThomasV
dcffea150e store contacts and invoices in wallet file. fix #1482 2017-03-06 17:12:27 +01:00
Johann Bauer
96686c4a2b Fix decimal usage 2017-02-28 22:58:35 +01:00
ThomasV
4db5052cc6 fix android detection 2017-01-04 22:37:59 +01:00
7sean68
4f2924e4a0 changed false Identification of windows as linux 2017-01-04 00:05:19 +02:00
akshayaurora
07c5f02639 changes for new toolchain 2016-07-27 17:57:12 +02:00
ThomasV
bbe7b277d2 call jnius.detach on thread stop 2016-06-04 12:59:01 +02:00
ThomasV
2cf4795250 dynamic fees: define fee levels using expected confirmation times 2016-05-31 20:26:09 +02:00
ThomasV
0273936b07 Discretize fee levels (follow-up 3314b3a). Fixes #1753 2016-05-26 09:23:42 +02:00
ThomasV
9d12c7699f Merge pull request #1619 from MarcoPon/master
Added Blockchain URI (BIP 122) to block explorers list.
2016-04-06 10:45:17 +02:00
ThomasV
4c7bbb4e86 android: move wallet data to internal storage. 2016-03-08 08:10:38 +01:00
Neil Booth
cc4ec4c34e Add BTC.com block explorer. 2016-02-25 00:31:24 +09:00
ThomasV
305843999e Relicensing 2016-02-24 10:20:30 +01:00
ThomasV
a7d3175799 replace semantically relevant instances of 'assert' with exceptions 2016-02-15 09:33:38 +01:00
ThomasV
950f3ae633 parse_uri: don't use assert 2016-02-13 15:09:42 +01:00
Neil Booth
16397b1ed7 trezor: more user friendly when cannot connect
Tell the user and ask if they want to try again.  If they
say no, raise a silent exception.  Apply this more friendly
behaviour to the install wizard too (see issue #1668).
2016-02-06 19:51:39 +09:00
Neil Booth
06c262d0dc TrezorClient: should be in a separate thread
First steps; get show_address working.
Client is not responsible for showing exceptions.
Suppress uninteresting exceptions.
2016-01-18 07:33:04 +09:00
Marco Pontello
065f6aa370 Added Blockchain URI (BIP 122) to block explorers list. 2016-01-08 20:23:17 +01:00
Neil Booth
e1c0298fc2 Write the wallet less often
This should speed up synchronization / restoration of large wallets.
Wallets are written only when they switch to up_to_date state, or
when stop_threads() is called when closing the daemon, or when
a command line command finishes.
2015-12-20 15:47:46 +09:00
ThomasV
b3ef2249b5 add more features to settings dialog 2015-12-16 11:53:37 +01:00
ThomasV
6ad3f47640 don't rewrite index.html everytime 2015-12-15 12:10:25 +01:00
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