Commit Graph

213 Commits

Author SHA1 Message Date
dmcdad 292ab39553 Update interface.py
Fix timeout problem under Python 2.7.1 where a socket.error 60 is thrown instead of socket.timeout exception.
2014-01-15 08:49:26 -06:00
ThomasV f4f418e9ec return message ids with send_http too 2013-12-21 19:27:49 +01:00
ThomasV de94eaadeb fix issue occuring with set_server 2013-12-17 18:20:54 +01:00
ThomasV 60b6fd399d exit gracefully if host cannot be resolved. Fixes #488 2013-12-13 09:22:39 +01:00
ThomasV cff8515e3c on sl error: print exception inside for loop, and do not continue the loop 2013-11-14 09:23:38 +01:00
Emery Hemingway 8f87f7e954 IPv6 support 2013-11-13 14:46:36 -05:00
ThomasV ee141f6d37 fix connect on windows 2013-11-11 16:59:36 +01:00
Bryan Stitt 225d8b83a3 don't use bare except 2013-11-09 21:23:57 -08:00
Bryan Stitt f0eb0eccde replace BaseException with Exception 2013-11-09 20:21:02 -08:00
ThomasV 83e699c314 sanitize server in interface.py (fix bug #309) 2013-10-08 19:52:17 +02:00
ThomasV d2af935fc7 use a regexp for the ssl bug workaround 2013-10-08 13:24:54 +02:00
ThomasV f858f69c56 workaround android bug with ssl certificates 2013-10-08 13:08:13 +02:00
ThomasV 66f224eab4 update a few scripts 2013-10-06 12:28:45 +02:00
ThomasV a6934f6796 support for all protocols 2013-10-05 11:16:09 +02:00
ThomasV 0b2c09d20b interface.debug flag 2013-10-04 16:00:20 +02:00
ThomasV c18a49b8fe auto-cycle: switch to the longest chain 2013-10-03 14:56:48 +02:00
ThomasV 77dd1ae1b1 handle handshake failures in SSL 2013-10-03 10:27:39 +02:00
ThomasV 7a5016ec42 move synchronous_get to network.py, fix get_balance script 2013-10-03 10:05:01 +02:00
ThomasV 5086fd6b27 do not check certificate expiration if OpenSSL cannot be imported 2013-10-03 07:44:04 +02:00
ThomasV 40e393187a manage subscriptions in network.py 2013-10-02 13:00:02 +02:00
ThomasV 7a5b8a6202 fix 2013-10-02 10:43:02 +02:00
ThomasV 676350ba8a delete expired certificates 2013-10-02 10:36:29 +02:00
ThomasV 614254d037 scripts to check certificates 2013-10-02 10:21:25 +02:00
ThomasV 36b61fccfd temporary_path for unverified certificates 2013-10-02 09:22:13 +02:00
ThomasV 1bcb361fca fixes 2013-10-02 04:01:24 +02:00
ThomasV f3763b45af fix 2013-10-02 03:33:45 +02:00
ThomasV c097b9a530 delete only if cert is new 2013-10-02 03:24:14 +02:00
ThomasV 06cc898652 delete certificates that fail 2013-10-02 03:20:15 +02:00
ThomasV 27cc09e8e2 prevent dns leaks when using proxy. fixes issue #147 2013-10-01 11:24:55 +02:00
ThomasV 7658b2ade1 interface: call socket.connect before sll.wrap_socket, for proxy. (fixes bug #207) 2013-10-01 09:01:46 +02:00
thomasv a6002cf71c SSL certificate validation 2013-09-30 14:01:49 +02:00
rofl0r 854802122c fix error to create a wallet due to missing pick_random_server decl 2013-09-18 16:55:19 +00:00
ThomasV d51a8d0f25 create a class for transaction dialog 2013-09-14 21:07:54 +02:00
thomasv 6b6c508976 replace wallet.interface everywhere 2013-09-12 14:58:42 +02:00
ThomasV 907dca6eb9 simplify interface: use callbacks 2013-09-12 08:41:27 +02:00
thomasv 77871b97af fixes, resend_subscriptions 2013-09-10 19:59:58 +02:00
thomasv 2df129cfbf connect to random servers, reconnect if connection is lost 2013-09-10 17:52:43 +02:00
thomasv 0ec436c02c fix: network start was calling __init__ 2013-09-10 16:42:11 +02:00
thomasv 047e4b3478 move callbacks to the network class 2013-09-09 13:33:25 +02:00
ThomasV 328315f94b separate blockchain and network 2013-09-08 17:23:01 +02:00
ThomasV 803b292d9d socket: retry on EAGAIN 2013-09-02 21:16:57 +02:00
thomasv 2a6e8927dd select the longest blockchain from several servers 2013-09-02 17:49:12 +02:00
thomasv 9d1c31255c Merge branch '1.9' of git://github.com/spesmilo/electrum into 1.9 2013-09-02 11:16:35 +02:00
ThomasV d99a381d83 separation between wallet storage and config 2013-09-01 15:26:52 +02:00
thomasv 1d26676ee9 parse_servers method 2013-08-14 16:16:03 +02:00
thomasv a0b86f405d offline interface: fix init 2013-08-01 11:31:33 +02:00
Maran 06bfb60308 Reworked notification flow and combined multiple transactions into one notification 2013-07-16 12:15:23 +02:00
Maran 468c76b66e Added notifications when receiving a new transaction 2013-07-16 12:15:23 +02:00
Eagle[TM] d24fefd459 update default server list, remove offline and pre v0.8 servers 2013-05-06 01:23:18 +02:00
ecdsa 86fd728a47 move network dialog in a new class; simplify interface.get_servers 2013-04-28 13:47:19 +02:00
ecdsa 827e29c1dc fix: print_log -> print_error 2013-04-27 10:57:15 +02:00
ecdsa 6069939003 handle errno 10035 2013-04-27 10:22:01 +02:00
ecdsa 7653408ff4 fix: socket error 2013-04-27 07:30:18 +02:00
ecdsa 21c0578ca8 fix is_connected with http protocol 2013-04-10 08:03:17 +02:00
thomasv 98f7d36313 ask users to enter their seed on create 2013-04-09 18:08:14 +02:00
ecdsa 35ecbff7a5 fix http session init 2013-04-07 21:48:37 +02:00
ecdsa dbe981a89b show pruning level in network dialog (expert mode) 2013-04-06 16:06:15 +02:00
ecdsa 84101a446b use ssl as default protocol 2013-04-05 06:01:18 +02:00
ecdsa 8a720b1629 do the banner request in interface, not in wallet 2013-03-17 10:54:21 +01:00
thomasv a4f977190e do not call exit() in the interface module 2013-03-13 15:26:29 +01:00
ecdsa 441cc6c9cd fix 2013-03-10 16:24:52 +01:00
ecdsa 837150132d optional wait parameter for interface 2013-03-10 10:24:42 +01:00
ecdsa 49a4c6c92a do not wait for interface when launching gui 2013-03-10 10:15:09 +01:00
ecdsa 3fe0e160ca catch http exception when wallet is offline 2013-03-04 17:20:07 +01:00
ThomasV 512a812872 try http if tcp fails. 2013-01-03 21:36:25 +01:00
thomasv e3fc19c48c fix previous commit 2013-01-03 17:55:35 +01:00
thomasv 2962c63001 auto_cycle option 2013-01-03 17:39:51 +01:00
thomasv 4180a426c5 auto-reconnect to random server if server is not there 2013-01-03 16:05:38 +01:00
Eagle[TM] 83c008b6f8 revert pruning flag for default servers (too much complexity) 2013-01-02 14:50:52 +01:00
Eagle[TM] 4f0f187e56 Update default servers with pruning flag 2013-01-02 11:18:09 +01:00
Eagle[TM] 736b72f77f updating default servers 2012-11-27 09:16:27 +01:00
ThomasV 9afbf21197 no daemon 2012-11-24 20:35:09 +01:00
thomasv cf1f533613 allow offline creation/recovery within the gui 2012-11-20 15:30:46 +01:00
thomasv 2385cc3ad8 show server type (pruning or full) 2012-11-20 13:33:36 +01:00
ThomasV 2d13107897 make a regular gui module for android 2012-11-18 11:34:52 +01:00
ThomasV 8ec6a60daf compatibility with 0.6 protocol 2012-11-14 15:33:44 +01:00
thomasv 259c5c1b06 adding two more servers that upgraded 2012-11-13 15:26:49 +01:00
ThomasV a48a971ae6 check consistency of results received by get_history 2012-11-07 09:37:14 +01:00
ThomasV 8ed812830f PROTOCOL_VERSION 2012-11-06 22:20:54 +01:00
thomasv 8f85187545 readding bysh.me server 2012-11-06 11:05:04 +01:00
ThomasV cc028c2ca3 comment out the servers that are not 0.5 2012-11-05 17:45:31 +01:00
Maran 18d5bef433 Updated the bytesized-hosting.com to the shorter bysh.me so that the server meta data fits 2012-11-05 13:18:57 +01:00
thomasv 73dc533e79 set timestamps on startup 2012-11-05 10:26:28 +01:00
ThomasV 32d0f6ed27 send protocol version 2012-11-04 22:45:50 +01:00
ThomasV 39a85767a3 solve deadlock during restore 2012-11-04 20:53:27 +01:00
ThomasV 5bb441ce37 add mnemonic functions to module 2012-11-04 19:40:17 +01:00
ThomasV f1a7473ae2 do not use old servers 2012-11-04 11:08:05 +01:00
ThomasV ea7dabe640 fix proxy index 2012-10-28 21:59:51 +01:00
ThomasV 5874457df2 fix: subscriptions 2012-10-28 10:22:12 +01:00
thomasv 8152072938 fix: self.s is None if we are not connected 2012-10-27 16:46:42 +02:00
ThomasV cfb3aa6a12 move 'peers.subscribe' and 'server.version' calls into the interface 2012-10-27 14:15:03 +02:00
ThomasV be6aab538d cosmetic change 2012-10-27 12:31:43 +02:00
ThomasV 35882f7fb7 catch ssl exception caused by timeout 2012-10-27 10:24:43 +02:00
ThomasV 3216c0467d use print_error 2012-10-26 18:25:43 +02:00
thomasv f91dde55dd subscribe to / verify headers 2012-10-25 15:40:30 +02:00
ThomasV b018e0ae53 simple payment verification: check targets, use block headers file. 2012-10-24 21:45:45 +02:00
ThomasV 52d72a527a fix: break the loop 2012-10-23 08:15:53 +02:00
ThomasV c9ffb1b4ba fix order 2012-10-23 07:45:56 +02:00
ThomasV 0d68926da2 fix: copy the default servers array 2012-10-22 18:50:17 +02:00
thomasv c735fcd228 more robust connection procedure: let the user start with proxy 2012-10-22 17:18:07 +02:00