teor
3260dbff03
Update to NU5 mainnet network protocol version ( #9 )
...
This change should allow the seeder to connect to the network until early 2022.
The `version`, `verack`, `getaddrs`, and `addrs` messages haven't changed,
so the seeder is trivially compatible with future network upgrades.
2021-05-06 09:15:32 +10:00
George Tankersley
8aa4e10c8f
Bump user agent for 0.1.2
2020-06-11 14:28:12 -04:00
George Tankersley
8ad2dadae1
zcash: bump user agent version
2020-06-09 11:39:21 -04:00
George Tankersley
16d803bb86
zcash: fix retry logic
...
Previously, when a request timed out, that peer would not be removed
from the pending handshake signal map. Since the peer was still in the
map, any attempt to reconnect would fail since it would look like we
were already waiting on a response.
2020-06-09 11:39:09 -04:00
George Tankersley
1ec079a0fe
zcash: increase handshake time and address buffer size
2020-06-08 13:10:09 -04:00
George Tankersley
de1dc1644d
zcash: fix blacklist behavior
...
Previously, the blacklist would never be retried since we queued the
wrong list of addresses. New logic also drops peers from the blacklist
if they've been continuously retried without success for a while.
2020-06-01 13:36:33 -04:00
George Tankersley
716bdf4573
zcash: change user agent to 'zfnd-seeder'
2020-06-01 13:15:49 -04:00
George Tankersley
3cc28746f6
zcash: recursively ask new peers for their address book
2020-05-29 17:46:05 -04:00
George Tankersley
e57eebd627
dnsseed,zcash: occasionally retry blacklisted addresses
2020-05-24 21:43:53 -04:00
George Tankersley
f6c1b71dd0
zcash: update client parameters for current testnet
2020-05-23 17:10:20 -04:00
George Tankersley
83f92c01a9
zcash: increase connection timeouts
...
This almost doubles the number of hosts we can successfully contact.
2020-05-23 16:56:15 -04:00
George Tankersley
d6db4e38ec
dnsseed,zcash: suppress excessive logging
2020-05-23 16:55:47 -04:00
George Tankersley
0633d8a54b
dnsseed,zcash: fix crawler deadlocks and increase buffer sizes
2020-05-23 15:10:05 -04:00
George Tankersley
814f8cb850
dnsseed,zcash: implement slow-motion recursive crawling
...
This will do one hop of additional graph crawl every time the update
interval fires. It will blacklist peers who are not consistently
available and over time should converge to the set of stable peers
suitable for DNS bootstrapping.
2020-05-22 12:46:02 -04:00
George Tankersley
e06186309c
dnsseed: separate IPv4 and IPv6 responses
2020-05-21 19:07:37 -04:00
George Tankersley
28d329c835
zcash: move blacklist management to address book
2020-05-21 18:41:31 -04:00
George Tankersley
289e839360
zcash: adjust crawler timeouts for non-local peers
2020-05-21 17:25:01 -04:00
George Tankersley
77728106cd
dnsseed: connect ServeDNS to the Zcash seeder
2020-05-20 22:16:41 -04:00
George Tankersley
f1e7d75e28
zcash: move goroutine spawn to caller rather than callback
2020-05-20 19:15:20 -04:00
George Tankersley
8755624103
zcash: refactor address book and ensure type consistency for interface{} maps
2020-05-20 18:08:34 -04:00
George Tankersley
f1c13a8fd6
dnsseed: implement scaffold for a coredns plugin
2020-05-19 22:32:23 -04:00
George Tankersley
d1ebd57070
module: reinitialize module for functional Zcash Foundation namespace
...
The concept has been proven and nothing is using this right now, so it's
fine to grant its true name.
2020-05-19 21:45:45 -04:00
George Tankersley
54a67e5e72
zcash: working but unpleasant refactoring of address handling
2019-12-30 20:54:38 -05:00
George Tankersley
5f8cea77c0
WIP type safety + factored address book
2019-10-17 22:47:40 -04:00
George Tankersley
6b0ca0e25a
zcash: time out underlying TCP connection
2019-10-17 00:54:23 -04:00
George Tankersley
fdb8953ac2
zcash: make better use of address metadata
2019-10-17 00:41:08 -04:00
George Tankersley
21b4c750a3
zcash: add address request handling
2019-10-17 00:03:56 -04:00
George Tankersley
7d12f5e57d
zcash: support alternative ports and clarify APIs
2019-10-16 21:06:52 -04:00
George Tankersley
7716305c89
zcash: implement address requests and improve test reliability
2019-10-13 18:07:56 -04:00
George Tankersley
c6c3f2ca53
zcash: replace mutex tangle with too many sync.Maps
2019-10-12 19:31:18 -04:00
George Tankersley
0f1773c0d1
zcash: implement peer handshakes and state tracking
2019-10-12 12:42:16 -04:00
George Tankersley
bdb049e215
initial commit
2019-10-09 18:32:15 -04:00