Commit Graph

54 Commits

Author SHA1 Message Date
Gustavo Valverde adaedcea40
fix(build): bump deps and fix `caddy` import (#23) 2024-03-14 18:56:54 -03:00
Conrado Gouvea c0b68332d5
skip peers using flux ports before adding to queue (#20) 2022-06-14 11:59:04 -03:00
Conrado Gouvea 309a0064b5
Enforce minimum protocol version (#18)
* enforce minimum protocol version

* use separate min protocol version for mainnet and testnet; don't connect to flux ports

* point to merged btcd package
2022-06-07 10:50:02 -03:00
Conrado Gouvea 88fc106ef3
filter peers using non-std ports (#17) 2022-06-06 21:07:21 -03:00
Conrado Gouvea e9a2d22878
change(nu5): bump version and protocol version (#16)
* change(nu5): bump version and protocol version

* Apply suggestions from code review

Co-authored-by: teor <teor@riseup.net>

Co-authored-by: teor <teor@riseup.net>
2022-03-30 11:16:01 -03:00
Conrado Gouvea c583660bbc
Add support for receiving addrv2 (#14)
* Add support for receiving addrv2

* Apply suggestions from code review

Co-authored-by: teor <teor@riseup.net>

* Document addrv2 handling

* Improve documentation; point to the main-zfnd branch of btcd

Co-authored-by: teor <teor@riseup.net>
2021-11-22 10:44:01 -03:00
teor bdffa21e23
Set network protocol version to NU5 testnet (second activation) (#13) 2021-09-30 07:52:27 +10:00
teor d06375002d
Set the seeder network protocol version to NU5 testnet (#12) 2021-09-24 09:38:37 +10:00
teor a3c1086158 Fix spacing, update user-agent version to an alpha 2021-05-05 23:55:09 -04:00
teor d74b784a53 Try the canopy mainnet protocol version 2021-05-05 23:55:09 -04:00
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 2e9a4e1fd7 dnsseed: plugin init should not fail if a bootstrap peer is down unless they all are 2020-06-11 14:27:14 -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 cb5318ffae Release v0.1.0 2020-06-01 13:51:32 -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 cbbc22f78e README: update instructions and license information 2020-05-29 17:55:06 -04:00
George Tankersley 3cc28746f6 zcash: recursively ask new peers for their address book 2020-05-29 17:46:05 -04:00
George Tankersley 3afe386840 dnsseed: move first crawl into goroutine 2020-05-29 16:25:03 -04:00
George Tankersley be7ce4daad dnsseed: add record_ttl config option and improve config testing 2020-05-25 19:52:07 -04:00
George Tankersley bf13b85d1c dnsseed: don't wait for full crawl on setup 2020-05-25 17:38:55 -04:00
George Tankersley e57eebd627 dnsseed,zcash: occasionally retry blacklisted addresses 2020-05-24 21:43:53 -04:00
George Tankersley bba9f4436e Update README.md for new config format 2020-05-24 21:43:46 -04:00
George Tankersley 4313ef4778
dnsseed: implement better config options (#1) 2020-05-24 21:36:16 -04:00
George Tankersley f6c1b71dd0 zcash: update client parameters for current testnet 2020-05-23 17:10:20 -04:00
George Tankersley e9ea4b8658 dnsseed: reorder automatic zone configuration to correct hierarchy 2020-05-23 17:09:55 -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 a01f5196b7 dnsseed: serve results 2020-05-21 18:41:08 -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 e22a55c194 zcash: test learning about a valid new address 2020-05-20 18:40:43 -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