Commit graph

143 commits

Author SHA1 Message Date
Pieter Wuille
d098ad9a1f Add support for NODE_COMPACT_FILTERS by default 2019-08-09 17:04:12 -07:00
Pieter Wuille
36bd7f9a0f Send BIP37 fRelay as false 2019-08-09 16:56:23 -07:00
Pieter Wuille
180eb62bd2 Delete unused TestUint256AdHoc 2019-08-09 16:53:30 -07:00
Pieter Wuille
002bc0bbd5 Support NODE_NETWORK_LIMITED by default 2019-08-09 16:52:18 -07:00
Pieter Wuille
d54f39a1ee
Merge #42: thisflag should be declared as FlagSpecificData reference
9e4e634 thisflag should be declared as FlagSpecificData reference (Andrea Suisani)
2017-01-12 21:06:13 -08:00
Andrea Suisani
9e4e6342b7
thisflag should be declared as FlagSpecificData reference
With the current code there's now way that the seeder
returns peers addresses upon dns requests.

Thanks to @gandrewstone for good catch.
2017-01-13 00:04:09 +01:00
Pieter Wuille
d5764c9149 Fix per-flag-cache size tracking 2016-10-29 12:15:18 -07:00
Pieter Wuille
0ec6e14c17
Merge #41: Fix -w option
0984cac Fix -w option (Peter Todd)
2016-06-23 21:51:38 +02:00
Peter Todd
0984caca2a
Fix -w option 2016-06-14 23:53:20 -04:00
Pieter Wuille
43388c3c3e
Merge #40: Improve filter whitelist
fa2aa34 Improve filter whitelist (Pieter Wuille)
2016-06-07 18:58:45 +02:00
Pieter Wuille
fa2aa348c8 Improve filter whitelist 2016-06-07 18:55:16 +02:00
Pieter Wuille
ab0ac73e5f
Merge #36: Add support to filter nodes by node flags
c9679dc Add whitelist for service filter, use a map for cacheTime (Jonas Schnelli)
5c8b9e3 IP-Query: Use a vector instead a set and random pick an IP (Jonas Schnelli)
839db15 Add support to filter nodes by node flags (Jonas Schnelli)
2016-06-07 17:57:12 +02:00
Jonas Schnelli
c9679dc98e
Add whitelist for service filter, use a map for cacheTime 2016-06-03 17:53:03 +02:00
Pieter Wuille
9c32351efd
Merge #38: Wait for more than a single addr to come back
e27d6c5 Adjust protocol timeouts (Pieter Wuille)
a9e960a Wait until we have more than a single addr response (Pieter Wuille)
2016-06-01 12:43:54 +02:00
Pieter Wuille
e27d6c5b3d Adjust protocol timeouts 2016-05-31 22:07:07 +02:00
Pieter Wuille
a9e960a4dd Wait until we have more than a single addr response 2016-05-31 22:06:58 +02:00
Jonas Schnelli
5c8b9e392b
IP-Query: Use a vector instead a set and random pick an IP 2016-05-31 10:40:44 +02:00
Jonas Schnelli
839db157f9
Add support to filter nodes by node flags 2016-05-27 16:22:42 +02:00
Pieter Wuille
c36ed80739
Merge #35: fix typos
3efbe20 fix typos (Carsten Otto)
2016-05-26 15:52:30 +02:00
Pieter Wuille
e7ab039041
Merge #31: Longer TTL
1763253 Longer TTL (Pieter Wuille)
2016-05-26 15:51:27 +02:00
Carsten Otto
3efbe20217 fix typos 2016-02-06 22:32:40 +01:00
Pieter Wuille
1a33b78801
Merge pull request #33
f0c8b87 require e-mail address if dns is enabled (Pavel Vasin)
2015-08-04 18:57:05 +02:00
Pavel Vasin
f0c8b87a07 require e-mail address if dns is enabled
Writing SOA record will cause nullptr dereference if it's not specified.
2015-08-03 22:04:20 +03:00
Pieter Wuille
a59329d936
Merge pull request #19
bb53306 dns: listen on ipv6 (Pavel Vasin)
34fd288 remove option to build without ipv6 support (Pavel Vasin)
2015-07-29 15:55:49 +02:00
Pieter Wuille
69436e5f4b
Merge pull request #32
5be5b37 Fixup (Pieter Wuille)
2015-07-29 15:35:35 +02:00
Pieter Wuille
5be5b37a83 Fixup 2015-07-29 15:34:23 +02:00
Pieter Wuille
17632535ca Longer TTL 2015-07-29 15:19:21 +02:00
Pieter Wuille
5b5a942b1f
Merge pull request #30
98f98c2 Update version/height requirements (Pieter Wuille)
2015-07-29 15:17:46 +02:00
Pieter Wuille
98f98c2a3a Update version/height requirements 2015-07-29 15:16:26 +02:00
Pieter Wuille
75f2662406
Merge pull request #13
c11d7ed Add size specifier to BITCOIN_SEED_NONCE (Wladimir J. van der Laan)
2015-07-29 15:09:51 +02:00
Pieter Wuille
8ca655cd78
Merge pull request #23
9b49b9f Add compilation instructions. (Eric Martindale)
2015-07-29 14:58:06 +02:00
Pieter Wuille
5b36c248f5
Merge pull request #27
5eca8e2 Fix negative responses (Peter Todd)
2015-07-29 14:57:11 +02:00
Pieter Wuille
589fcd6ee2
Merge pull request #29
23aa36a indicate that IPv4/IPv6 proxy use SOCKS5 protocol (Jonas Schnelli)
134a393 add support for IPV6 proxy (Jonas Schnelli)
1d9d182 add support for IPV4 proxy (Jonas Schnelli)
6e5a391 avoid connecting to non valid ipv4 ranges (>=240.0.0.0) (Jonas Schnelli)
2015-07-29 14:54:37 +02:00
Jonas Schnelli
23aa36ad40 indicate that IPv4/IPv6 proxy use SOCKS5 protocol 2015-07-27 11:49:51 +02:00
Jonas Schnelli
134a393d1d add support for IPV6 proxy 2015-07-26 17:32:05 +02:00
Jonas Schnelli
1d9d182b2b add support for IPV4 proxy
- this will allow crawling over TOR
2015-07-20 13:55:21 +02:00
Jonas Schnelli
6e5a39185e avoid connecting to non valid ipv4 ranges (>=240.0.0.0) 2015-07-18 20:43:24 +02:00
Peter Todd
5eca8e269a
Fix negative responses
Previously if the resolver was asked for a record it didn't have, it would
return a response with a NS record in the authority section.  This is
incorrect, as the lack of answer indicates to the resolver that it should try
that NS record as the next step, resulting in a loop:

    $ dig @8.8.8.8 rbf-seed.btc.petertodd.org TXT +trace

    <snip>

    rbf-seed.btc.petertodd.org. 300 IN      NS      rbf-seed-ns1.btc.petertodd.org.
    rbf-seed.btc.petertodd.org. 300 IN      NS      rbf-seed-ns2.btc.petertodd.org.
    ;; Received 141 bytes from 205.251.193.174#53(ns-430.awsdns-53.com) in 426 ms

    rbf-seed.btc.petertodd.org. 40000 IN    NS      rbf-seed-ns2.btc.petertodd.org.
    ;; BAD (HORIZONTAL) REFERRAL
    ;; Received 88 bytes from 185.52.1.173#53(rbf-seed-ns2.btc.petertodd.org) in 108 ms

    rbf-seed.btc.petertodd.org. 40000 IN    NS      rbf-seed-ns2.btc.petertodd.org.
    ;; BAD (HORIZONTAL) REFERRAL
    ;; Received 88 bytes from 185.52.1.173#53(rbf-seed-ns2.btc.petertodd.org) in 108 ms

    <snip>

    rbf-seed.btc.petertodd.org. 40000 IN    NS      rbf-seed-ns2.btc.petertodd.org.
    ;; BAD (HORIZONTAL) REFERRAL
    dig: too many lookups

The correct response in the authority section of a negative response is a SOA
record, which indicates that the answer is authoritative and the resolver can
consider the record missing and stop looking for it:

    $ dig @8.8.8.8 rbf-seed.btc.petertodd.org TXT +trace

    <snip>

    rbf-seed.btc.petertodd.org. 300 IN      NS      rbf-seed-ns1.btc.petertodd.org.
    rbf-seed.btc.petertodd.org. 300 IN      NS      rbf-seed-ns2.btc.petertodd.org.
    ;; Received 141 bytes from 205.251.196.185#53(ns-1209.awsdns-23.org) in 740 ms

    rbf-seed.btc.petertodd.org. 40000 IN    SOA     rbf-seed-ns1.btc.petertodd.org. pete.petertodd.org. 1435846201 604800 86400 2592000 604800
    ;; Received 128 bytes from 104.236.95.174#53(rbf-seed-ns1.btc.petertodd.org) in 31 ms

There have been a few reports of problems resolving seed domains on some
ISPs - hopefully this was the root cause.
2015-07-02 09:58:14 -04:00
Pieter Wuille
85fb114ed5
Merge pull request #25
7a79dca Add dependencies to README (Peter Todd)
2015-06-21 15:12:55 +02:00
Pieter Wuille
98557c252b
Merge pull request #26
01c6b4e Update list of testnet seeds (Peter Todd)
2015-06-21 15:12:24 +02:00
Peter Todd
01c6b4e4c2
Update list of testnet seeds 2015-06-20 18:21:06 -04:00
Peter Todd
7a79dcac51
Add dependencies to README 2015-06-20 18:17:06 -04:00
Eric Martindale
9b49b9f2a0 Add compilation instructions. 2015-03-31 17:19:53 +00:00
Pieter Wuille
11e935b720 Avoid circular references 2015-03-07 04:03:08 -08:00
Pavel Vasin
bb53306a2e dns: listen on ipv6 2014-07-21 15:59:25 +04:00
Pavel Vasin
34fd2888bb remove option to build without ipv6 support 2014-07-21 15:59:25 +04:00
Pieter Wuille
7fedc639db Merge pull request #17 from erkmos/macfixes
removed redundant insert and added a missing define on mac os x
2014-03-24 22:25:57 +01:00
Erik Mossberg
8eac14158b removed redundant insert and added a missing define on mac os x 2014-03-24 22:17:43 +01:00
Wladimir J. van der Laan
c11d7ed921 Add size specifier to BITCOIN_SEED_NONCE
This was causing warnings when compiling on 32-bit.
2013-11-20 08:29:04 +01:00
Pieter Wuille
9844652e6b
Merge pull request #12
bc43d4c Add .gitignore (Peter Todd)
2013-10-12 21:41:30 +02:00