Commit Graph

372 Commits

Author SHA1 Message Date
ThomasV
d1b8a6fae6 Replace initial headers download with hardcoded checkpoints 2017-12-12 10:20:44 +01:00
Justin Turner Arthur
857eb4ac1d Remove unused imports. Explicitly import a few deep imports. 2017-11-13 02:28:00 -06:00
Justin Turner Arthur
9a0aa9b478 Remove Python 2 support imports. 2017-11-13 02:26:48 -06:00
SomberNight
0db5ea67a0 bitcoin.NetworkConstants: easier changing between testnet and mainnet 2017-11-09 17:47:57 +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
319a31e64c Merge branch 'master' of github.com:spesmilo/electrum 2017-10-13 13:47:41 +02:00
ThomasV
3b8c8c712d fix #3038 2017-10-13 13:47:32 +02:00
SomberNight
8025d81ec0 fix #3035 2017-10-13 12:38:19 +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
ThomasV
031b911dce fix cache with h2addr 2017-09-30 13:01:33 +02:00
SomberNight
f80d8b02ca Periodically poll fee estimates from server. 2017-09-21 01:19:05 +02:00
SomberNight
0e89745c2b send server.version before subscriptions 2017-09-20 15:21:41 +02:00
SomberNight
efd07f727a fix testnet 2017-09-14 02:06:08 +02:00
ThomasV
c5f552f26a rm dead code 2017-09-13 15:12:50 +02:00
ThomasV
8b0db38f87 follow-up 3d4c64f9e 2017-09-13 14:54:52 +02:00
ThomasV
68873d92f9 implement scripthash logic 2017-09-13 11:32:40 +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
WakiyamaP
0791b469e7 fix download failed blockchain headers 2017-09-08 10:57:22 +09:00
ThomasV
70af22c9e4 update scripts/servers to display server version 2017-09-07 09:41:21 +02:00
ThomasV
216e9403be cleanup six (no python2 support) 2017-09-04 14:43:31 +02:00
ThomasV
5f1d9cbcf5 separate network layer from synchronizer 2017-08-31 09:59:29 +02:00
ThomasV
e02687bcf2 python3 updates 2017-08-26 08:28:24 +02:00
ThomasV
ab15ff3a00 updates for python3 2017-08-26 08:28:24 +02:00
ThomasV
65aeb0bd3c fix 5e7169bf355f2ac3ec8791c4768f0cd971e1640d 2017-08-26 08:28:24 +02:00
Johann Bauer
8e54d5c4d4 Make proxies work 2017-08-26 08:28:24 +02:00
ThomasV
c3388d9677 misc python3 updates:
- use jsonrpclib-pelix
 - update the kivy gui
 - update plugins
2017-08-26 08:28:24 +02:00
Dmitry Sorokin
d304ccdf17 py3 in qtgui 2017-08-26 08:27:47 +02:00
Dmitry Sorokin
5be78950ca py3 2017-08-26 08:27:47 +02:00
ThomasV
169ca85a01 fix #2719 2017-08-10 03:45:10 +02:00
ThomasV
72706f8219 network: connection_down if interface fails to connect chunk 2017-08-04 15:34:23 +02:00
ThomasV
5872bd4722 force new headers download if file is corrupted 2017-08-03 14:25:50 +02:00
ThomasV
57013ca985 update blockchain size after initial file download 2017-08-03 07:11:27 +02:00
ThomasV
311f9eda17 close connection if server sends invalid headers 2017-07-26 14:55:39 +02:00
ThomasV
5f3e5866ad blockchain write method, that flushes file 2017-07-25 10:03:15 +02:00
ThomasV
d71c9d5be3 make blockchain.size() threadsafe 2017-07-24 15:54:42 +02:00
ThomasV
d5d5e8af5c fix: handle multiple forks at same checkpoint 2017-07-24 08:46:49 +02:00
ThomasV
313d53fe0b save header immediately when forking a chain 2017-07-21 07:52:38 +02:00
ThomasV
c522c6b4d0 blockchain: store reference to parent_id instead of parent, so that it gets updated after swap 2017-07-20 15:05:47 +02:00
ThomasV
1457a869d3 network: call switch_lagging after catch up 2017-07-19 18:32:48 +02:00
ThomasV
ad8a6f3eff fix: do not request beyond tip 2017-07-19 17:33:05 +02:00
ThomasV
feb0f483f5 fix bug if headers file is empty 2017-07-19 17:23:46 +02:00
ThomasV
97343d95e5 speed-up search by starting at own height 2017-07-19 16:28:17 +02:00
ThomasV
0891798d1b minor fix 2017-07-19 11:57:15 +02:00
ThomasV
b424a83a57 add blockchain.get_name method, update kivy gui 2017-07-19 09:29:20 +02:00
ThomasV
814792eee1 show only active chains 2017-07-18 21:37:04 +02:00
ThomasV
50ad656c87 blockchain: swap a chain with its parent, if the parent branch is too short to be saved on disk 2017-07-18 18:10:22 +02:00
ThomasV
637d52ce58 don't request headers beyond tip 2017-07-18 14:11:22 +02:00
ThomasV
214e2b89c2 network: use interface.bad_header 2017-07-18 09:21:49 +02:00
ThomasV
ef1120b80c fix typo 2017-07-17 21:38:09 +02:00
ThomasV
702abf6581 simplification: do not request checkpoint, check headers against all known blockchains 2017-07-17 19:32:10 +02:00
ThomasV
3d4c64f9e0 improve blockchain search 2017-07-17 12:22:25 +02:00
ThomasV
2a10d3075e rm dead code 2017-07-17 11:25:05 +02:00
ThomasV
8260dfdbe7 network: use check_headers for binary search 2017-07-17 11:19:42 +02:00
ThomasV
acd0ea3ff3 cleanup dead code 2017-07-17 09:51:31 +02:00
ThomasV
65bce569e4 network: interface.tip_header 2017-07-17 09:32:12 +02:00
ThomasV
b0277d5426 blockchain: size method, various fixes 2017-07-17 08:44:09 +02:00
ThomasV
43c5657cb6 blockchain: parent pointer and recursive methods 2017-07-15 17:20:06 +02:00
ThomasV
cf84068fdb blockchain fixes 2017-07-15 13:51:40 +02:00
ThomasV
37143fd628 fix blockchain offset 2017-07-14 06:20:05 +02:00
ThomasV
ba2211f52e network dialog: refresh display on each new header 2017-07-13 17:23:24 +02:00
ThomasV
bf7deaa1fb remove blockchain fork detection threshold 2017-07-13 16:23:41 +02:00
ThomasV
e6116db565 network: minor fix 2017-07-13 09:31:27 +02:00
ThomasV
73b023e967 update network settings dialog of the kivy GUI 2017-07-11 18:04:33 +02:00
ThomasV
9b7102aed1 make fork_threshold configurable, fix backward mode 2017-07-08 16:45:09 +02:00
ThomasV
680e9a5552 network: go back if cannot connect during catch_up 2017-07-08 16:18:37 +02:00
ThomasV
568c14ca78 Refactor Network and Blockchain dialogs in qt and kivy 2017-07-08 11:38:32 +02:00
ThomasV
6b872b68bd hardcode another testnet server 2017-07-04 13:03:31 +02:00
ThomasV
2055fce087 network dialog: add menu actions to blockchains list 2017-07-04 11:35:04 +02:00
ThomasV
a7679debd1 fix #2533 2017-06-30 13:00:06 +02:00
ThomasV
8285bc458f network dialog: show servers in blockchain tab 2017-06-23 10:36:49 +02:00
ThomasV
6931ffada5 fix callbacks when switching to another server 2017-06-22 14:47:05 +02:00
ThomasV
ca220d8dbb Detect blockchain splits and validate multiple chains 2017-06-21 09:48:31 +02:00
ThomasV
1ee70f798e fix: reorgs 2017-05-23 14:51:44 +02:00
ThomasV
63f14f6ab2 fix: request chunk at next_height 2017-05-23 07:58:40 +02:00
ThomasV
ac77c9b9bd catch-up block headers from a single interface at a time 2017-05-19 12:16:21 +02:00
ThomasV
6321b14f9f Locate blockchain connection point with binary search 2017-05-13 11:19:36 +02:00
ThomasV
6afc11208d spv: keep track of header requests made by each interface 2017-04-20 10:59:30 +02:00
ThomasV
db13cf965c fix #2347 and return indentation 2017-04-02 04:36:05 +02:00
ThomasV
31fc9b78af keep connection open with a manually selected server, even if they fail passing the checkpoint 2017-03-31 12:04:29 +02:00
ThomasV
d371e1c807 network: request checkpoint when opening a new connection 2017-03-29 17:21:18 +02:00
ThomasV
59b0b51f24 add proxy settings to kivy GUI 2017-03-27 18:59:48 +02:00
ThomasV
59bc220856 fix auto-connect: do not use a random interface 2017-03-26 20:22:30 +02:00
Daniel Aleksandersen
b7801d0374 Tighten directory permissions 2017-03-24 21:50:31 +01:00
ThomasV
dd0b018a35 add configurable checkpoint to blockchain verification; use genesis as default 2017-03-23 11:58:56 +01:00
Eagle[TM]
f9bb74077e Update and add servers to default list; add schedule for phase-out of e-s 2017-03-20 00:56:27 +01:00
ThomasV
8e90d6a4e5 fix #2292 2017-03-15 12:21:26 +01:00
ThomasV
e78531d913 follow up 8babd3e986 2017-03-12 19:25:49 +01:00
Eagle[TM]
8babd3e986 Update default server list - make more use of DEFAULT_PORTS 2017-03-12 17:01:25 +01:00
shsmith
7ff5681010 fix #2204
avoid exception in close_interface when interface.server is not in
self.interfaces
2017-03-06 07:53:43 -08:00
ThomasV
ed2db4be80 Merge pull request #2239 from shsmith/master
fix #2204
2017-03-06 12:30:27 +01:00
shsmith
4109fd9eb2 request fees, peers and banner before address subscriptions
a wallet with many address subscriptions may time out on address
subscriptions before fees are received because fees were requested last
2017-03-04 08:42:46 -08:00
shsmith
1e25af7f0d fix https://github.com/spesmilo/electrum/issues/2204 2017-03-04 08:38:14 -08: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
shsmith
849a14554b report fee_estimates to verbose log
similar to how relayfee is logged
2017-03-01 15:10:03 -08:00
ThomasV
9c2d12923a fix: interface.close 2017-02-28 11:25:05 +01:00
Johann Bauer
9318b410bd Allow using a SOCKS5 proxy with authentication 2017-02-23 22:35:41 +01:00
Johann Bauer
2c7ab64e83 Always include default servers in the server list 2017-02-17 15:41:50 +01:00
ThomasV
3a64ec0f2e Initial segwit support (testnet only) 2017-01-25 21:42:15 +01:00
ThomasV
29e2570d3d prevent busy looping 2017-01-09 16:36:05 +01:00