Neil Booth
08dbbf217a
client_version must be a tuple
Fixes #180
8 years ago
TheLazieR Yip
b0e23e903d
Allow custom ElectrumX class
8 years ago
John L. Jegutanis
a4e4f80ad7
Allow custom Daemon and BlockProcessor classes
8 years ago
LaoDC
9e34bf8583
reverted and made the version split isolated within the banner logic only as not to affect other parts of the code.
8 years ago
LaoDC
9dceeb914c
Add new variables to BANNER(_TOR)
$SERVER_VER will return the version number (eg: 1.0.10)
$SERVER_SUBVERSION will return the full version string (eg: ElectrumX 1.0.10)
$VERSION is kept for legacy which is the same as $SERVER_SUBVERSION
8 years ago
LaoDC
5e92feb8a6
Add new variables to BANNER(_TOR)
$SERVER_VER will return the version number (eg: 1.0.10)
$SERVER_SUBVERSION will return the full version string (eg: ElectrumX 1.0.10)
$VERSION is kept for legacy which is the same as $SERVER_SUBVERSION
8 years ago
Neil Booth
2fe67932c5
Prepare 1.0.10
8 years ago
Neil Booth
e9acb685ab
Display hosts in diagnostic
8 years ago
Neil Booth
d216d5111b
Prepare 1.0.9
8 years ago
Neil Booth
8a2821d542
Reject invalid hostnames in Env
8 years ago
Neil Booth
b6d8b86dd6
Ignore hosts not appearing in their own features
8 years ago
Neil Booth
c0ff2c0c20
Bump to 1.0.8b
8 years ago
Neil Booth
f3de91180e
Add tests for server/env.py
8 years ago
Neil Booth
30df09534f
Bump to 1.0.8a
8 years ago
Neil Booth
2c43e89b05
Only set last_good if successfully verified
Rename last_connect to last_good
8 years ago
Neil Booth
e0a79c313c
Prepare 1.0.8
8 years ago
Neil Booth
7b17d99c5a
Put log on one line
8 years ago
Neil Booth
9f27ea875c
Fix peer replacement logic
- drop the IP address peer
- update the remaining peer with fresh info
8 years ago
Neil Booth
2656fd78a4
Clarify that we may not have a clearnet peer
8 years ago
Neil Booth
e96b8f0421
Prepare 1.0.7
8 years ago
Neil Booth
a94d320e5d
New feature: force peer discovery via proxy
Set FORCE_PROXY to non-empty to force peer discovery to go
through the proxy. See docs/ENVIRONMENT.rst
Wait for an attempt at proxy discovery to be made before beginning
peer discovery.
8 years ago
Neil Booth
77a441ad06
Improve proxy handling
Have a background proxy detection loop; removes need to check
specific peers at startup.
Consider proxy down once attempts to use it fail 3 times in a row.
Regularly attempt to rediscover a proxy if it is down.
8 years ago
Neil Booth
178de6c396
Tighten restrictions on HOST
- private IP not allowed if intending for public use
- localhost not allowed
8 years ago
Neil Booth
81e6577838
Catch address resolution failure exceptions
8 years ago
Neil Booth
321315ace0
Fix typo
8 years ago
Neil Booth
d1894356d0
Prepare 1.0.6
8 years ago
Neil Booth
9abc1dc11e
REPORT_HOST no longer defaults to HOST
Cleanup of identity handling. It is now possible to specify
a Tor identity and no clearnet identity.
8 years ago
Neil Booth
abba36ac6c
Relax the get_chunk restriction based on client
Closes #162
8 years ago
Neil Booth
55cedfea9c
Have Daemon work with aiohttp 1 and 2
Fixes #163
8 years ago
Neil Booth
594b66236f
Prepare 1.0.5
8 years ago
Neil Booth
8e00affc1a
Fix the diagnostic looping in PeerSession
Fixes #160
8 years ago
Neil Booth
23a408c572
More logging
8 years ago
Neil Booth
860a4e8e93
Prepare 1.0.4
8 years ago
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