Neil Booth
bc83fa8d68
Stop using deprecated RPC blockchain.block.get_chunk
...
Use blockchain.block.headers instead. It's more flexible but
that flexibility is not used here.
Port of 09798d6b20
2018-06-06 10:58:57 +09:00
Neil
e0a6b082d2
First message on an interface is server.version ( #4407 )
...
- Use server.ping to ping (valid as of protocol version 1.2) rather
than server.version (deprecated as a ping)
- Ping every 5 mins rather than every 1 minute. By default servers
don't consider a connection stale until 10 minutes of inactivity.
- Remove unused last_request member of interface
Port of c3f26e59db
2018-06-05 12:41:41 +02:00
Neil Booth
1900e58e88
Subscribe to raw headers
...
The old interface is deprecated
Port of fe303c97c3
2018-06-04 16:19:11 +09:00
ghost43
9b7a449057
util.make_dir: 0o700 permissions on folders ( #4357 )
2018-05-28 14:22:54 +02:00
SomberNight
51d047a35e
fix #4375
2018-05-22 12:55:50 +02:00
Harm Aarts
812d570ee2
Rename method to reflect its goal
...
Answer the question *what* problem the method solves. Not *how* it is
solving it.
2018-05-17 15:17:06 +02:00
Harm Aarts
d0d39e534e
Make side effect explicit
...
The removed method didn't allude to the fact it was adding the generated
hash to a dictionary. This was problematic since the code base now
seemingly had two methods for converting an address to a scripthash. One
in the network module and one in the (logical) bitcoin module.
2018-05-17 12:04:54 +02:00
SomberNight
7b50790584
do not raise BaseException
2018-04-07 17:10:30 +02:00
SomberNight
76e67daadd
changed some asserts to raise-exceptions in lib
2018-04-07 17:01:38 +02:00
ThomasV
95780a39a3
Merge pull request #4169 from SomberNight/open_utf8
...
use explicit utf-8 encoding when opening files in text mode
2018-03-25 10:35:37 +02:00
SomberNight
fa91cbf762
network - send_subscriptions: copy subscribed_addresses before iterating
...
see #4146
(this should at least avoid the RuntimeError)
2018-03-24 18:34:51 +01:00
SomberNight
9b7536e75c
use explicit utf-8 encoding when opening files in text mode
2018-03-23 21:47:51 +01:00
SomberNight
c79de3ab3c
fix #4139
2018-03-16 22:06:38 +01:00
SomberNight
08aee6a857
logging - use self.print_error instead of util.print_error
2018-03-09 14:58:13 +01:00
SomberNight
81b6d65764
refactor network constants
2018-03-04 22:10:59 +01:00
SomberNight
0df6d1ec97
trezor: segwit offline signing
2018-03-03 02:39:49 +01:00
ThomasV
d38a50b119
fix #3922 : wrong parameter passed to connection_down
2018-02-23 09:35:07 +01:00
SomberNight
02c7524d75
logging: some extra network-related lines
2018-02-22 16:44:22 +01:00
ThomasV
0928ac961a
fix #3955 : fix interference between verifier and catch_up
2018-02-22 16:33:39 +01:00
ThomasV
c3f3843cc3
Add memory pool based fee estimates
...
- fee estimates can use ETA or mempool
- require protocol version 1.2
- remove fee_unit preference
2018-02-05 12:23:32 +01:00
ThomasV
35878b437a
network: send version first
2018-01-19 15:48:20 +01:00
SomberNight
1c10d5dce1
remove --nossl option (follow-up dc388d4c7c
)
2018-01-16 12:36:39 +01:00
ThomasV
c8e67e2bd0
fix #3635
2018-01-13 17:09:25 +01:00
SomberNight
fc574ee514
fix #3578
2017-12-21 23:31:59 +01:00
ThomasV
4bab8b63e1
fix too short headers file
2017-12-20 12:37:45 +01:00
ThomasV
dc388d4c7c
replace SSL checkbox in GUI with command line option
2017-12-18 14:15:10 +01:00
ThomasV
83da45a7d2
Add checkpoints file for testnet. Check that received headers are after max_checkpoint
2017-12-13 14:22:46 +01:00
ThomasV
44a83c2401
read checkpoints file in NetworkConstants, add it to setup.py
2017-12-12 11:10:50 +01:00
ThomasV
40e13224f7
follow-up d1b8a6fae6
2017-12-12 10:48:05 +01:00
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