Neil Booth
2650459012
Peer discovery fixes
Change last_connect to mean last connection as its name implies,
not last connection that wasn't bad.
Keep bad peers around for 3 tries.
Improve diagnostic
8 years ago
Neil Booth
79bce5335e
Fix missing self
8 years ago
Neil Booth
fa1a5bd3e4
Prepare 1.0.3
8 years ago
Neil Booth
3236989165
Fix bad peer looping
JWU42 pointed out an issue where peer discovery could get in a
failure loop for bad peers; this fixes the the root cause and
the immediate retries
8 years ago
Neil Booth
7b263c5c49
Prepare 1.0.2
8 years ago
Neil Booth
e4947cb9ef
Sanitize the maximum number of sessions
Reduce the maximum number of sessions to permit if running with
a tight rlimit, to avoid hitting open file limits. Log when
doing so.
Closes #158
8 years ago
Neil Booth
f04ff6f5b3
Don't add_peer to ourself
8 years ago
Neil Booth
8236aaf234
Be more strict on form of features dictionary
8 years ago
Neil Booth
be5397a853
Validate hostnames before accepting a new peer
Don't retain non-public addresses
Closes #157
8 years ago
Neil Booth
7a2f29aabe
Be stricter accepting add_peer requests
- rate-limit onion add_peer requests
- for clearnet peers only accept if the peer resolves to the
source address
8 years ago
Neil Booth
84c201f665
Improve diagnostic
8 years ago
John L. Jegutanis
a820829e0e
Dynamic header support
Block headers can have a dynamic size that is being indexed on a
new meta file "headers_offsets".
The offsets are 64 bits in order to accommodate coins with big
headers that will accumulate GBs of header data after some years.
Closes #128
8 years ago
Neil Booth
37602d4eae
A couple of tweaks to the prior commit.
8 years ago
John L. Jegutanis
ed7d8a319d
Refactor block parsing API
8 years ago
Neil Booth
127b4de745
Add new RPC method: add_peer
8 years ago
Neil Booth
060d32211f
Check height for all peers
Closes #152
8 years ago
Neil Booth
d198b95798
Reduce new peers per source limit to 2 by default
8 years ago
Neil Booth
9238fe397d
Drop ports from top level of features
8 years ago
Neil Booth
e0fd64d29a
Rate-limit add_peer calls randomly
Prepare 1.0.1
8 years ago
Neil Booth
294212d421
Fix discovery of base of reorgs
8 years ago
Neil Booth
5f56689e9c
Don't permit common invalid REPORT_HOST values
8 years ago
Neil Booth
30bb832ef8
Prepare 1.0
8 years ago
Neil Booth
90d1d2641b
Prepare 0.99.4
8 years ago
Neil Booth
27f94cfb04
Take up to 2 peers randomly from each bucket
Bumped up from 1.
Restore STALE_SECS to 1 day
8 years ago
Neil Booth
51c1e9a59b
Prepare 0.99.3
8 years ago
Neil Booth
39bcdb1b6a
Require Python 3.5.3
3.5.2 has various socket and API issues affecting peer discovery
Closes #135
8 years ago
Neil Booth
be9d063457
Rename function
8 years ago
Neil Booth
31b978f21e
Remove debug logging and peers semaphore.
Increase STALE_SECS to 4 hrs. Will revert to 1 day soon.
8 years ago
Neil Booth
2c1481859f
More verbose peer logging
Force more reconnects. Restrict semaphore to 2.
8 years ago
Neil Booth
9bc326430d
Import JSONRPC
8 years ago
John L. Jegutanis
472c738479
fix crash in IRC initialization ( #141 )
8 years ago
Neil Booth
be95697002
Prepare 0.99.2
8 years ago
Neil Booth
e2d640dcb3
Don't announce self if not public
Show all hosts add_peer gives
8 years ago
Neil Booth
b3005fbb3e
Fix typo
8 years ago
Neil Booth
b0039a25a7
Prepare 0.99.1
8 years ago
Neil Booth
0145098165
Add debug output
Idea is to help understand #135
8 years ago
Neil Booth
d36d222489
Maintain more than one self-identity
Rather than just retaining our clearnet identity from the environment,
maintain any tor one as well. This is a little cleaner and avoids
confusion over port assignment when converting to real names.
Fixes #136
8 years ago
Neil Booth
04e7dbe99e
Only serve chunks in forward direction
This disconnects bad clients that are on the wrong network
for some reason, before they consume enormous bandwidth.
Closes #132
8 years ago
fr3aker
4c8b5a6439
fix tor coin peers always scheduled for check ( #139 )
fixes #138
8 years ago
fr3aker
012233672a
fix tor coin peers always scheduled for check ( #139 )
fixes #138
8 years ago
Neil Booth
5bcbdea16a
Only set last_connect if the connection was good
8 years ago
Neil Booth
6f32f99a06
Prepare 0.99
8 years ago
Neil Booth
5662f1fa88
Add facility to disable peer discovery
and/or self announcement.
8 years ago
Neil Booth
86f6a148b9
Separate async item processor per session
Improve daemon wait logic
Fixes #100
8 years ago
Neil Booth
f6a60d9b94
Prepare 0.11.4
8 years ago
Neil Booth
0149f2785f
A few peer handling improvements
based on suggestions from hsmiths
Set transport to None if a connection is lost
Only subscribe to peers if the peer is verified on same network
8 years ago
Neil Booth
9d6b353eec
Fix typo pointed out by hsmiths, thanks
8 years ago
Neil Booth
589f695aaf
Prepare 0.11.2
8 years ago
Neil Booth
68a8835db6
Implement script hash subscriptions
Best considered experimental
Closes #124
8 years ago
Neil Booth
eefa86ffbe
Remove dead code
8 years ago