public inbox for bitcoindev@googlegroups.com
 help / color / mirror / Atom feed
From: Jeff Garzik <jgarzik@exmulti.com>
To: Peter Todd <pete@petertodd.org>
Cc: bitcoin-development@lists.sourceforge.net
Subject: Re: [Bitcoin-development] Testnet DNS seed
Date: Sun, 27 Jan 2013 11:14:02 -0500	[thread overview]
Message-ID: <CA+8xBpe0cOiFsn9nOc84MJwMKmbJb9S5tOPzFSffD6iHWrQ91g@mail.gmail.com> (raw)
In-Reply-To: <20130127102752.GA7134@savin>

On Sun, Jan 27, 2013 at 5:27 AM, Peter Todd <pete@petertodd.org> wrote:
> On Fri, Jan 25, 2013 at 09:23:28PM -0500, Jeff Garzik wrote:
>> On Thu, Jan 24, 2013 at 2:01 AM, Peter Todd <pete@petertodd.org> wrote:
>> > Everything is running on a dedicated Amazon EC2 micro instance. Just
>> > IPv4 is supported right now as EC2 doesn't support IPv6; even tunnels
>> > are broken. I also haven't setup tor yet. I can do both if there is
>> > demand.
>>
>> How long do you plan to run this?  Indefinitely [presuming there is
>> interest and users]?
>
> Indefinitely. It's a pretty cheap thing to run, about $7.5/month. If
> anyone else wants I can give them a machine image copy easily too.

Cool.  ACK on adding your seed to the ref client.

>> > Also, FWIW, it looks like the pnSeed list is way out of date...
>>
>> Yes.  Usually nanotube does the update when poked.  That can happen,
>> or something different.
>>
>> A nice alternative might be a simple script that transforms Pieter's
>> seeds.txt into pnSeed[]
>
> seed.txt? You mean the dumpfile produced by bitcoin-seeder? That has

Correct.

> uptime info, although only a months worth if I understand it correctly.
>
> pnSeed probably should be filtered with SORB's dynamic ip list or
> similar too, and additionally add an expiry time. (1 year?)

That's fine.  The main point was to create something scripted and
repeatable.  Then pnSeed[] becomes easier to maintain _and_ easier to
audit.  Right now it is a bit opaque with a list of hex constants.  A
script or makefile rule could do

     cd src
     ../contrib/gen-seeds.py > seeds.h

and seeds might look like

  #ifndef __SEEDS_AUTOGEN_H__ etc.

  unsigned int pnSeed[] = {
    0xABCD1234, /* IP addr 12.34.56.78 */
  };

I think Satoshi liked them opaque and not easily searchable, so
printing the readable IP address in a comment may not be desired.
Anyway, that output would make updating the list more transparent and
easy to maintain.

-- 
Jeff Garzik
exMULTI, Inc.
jgarzik@exmulti.com



  reply	other threads:[~2013-01-27 16:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-24  7:01 [Bitcoin-development] Testnet DNS seed Peter Todd
2013-01-26  2:23 ` Jeff Garzik
2013-01-27 10:27   ` Peter Todd
2013-01-27 16:14     ` Jeff Garzik [this message]
2013-01-27 16:18     ` Pieter Wuille

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+8xBpe0cOiFsn9nOc84MJwMKmbJb9S5tOPzFSffD6iHWrQ91g@mail.gmail.com \
    --to=jgarzik@exmulti.com \
    --cc=bitcoin-development@lists.sourceforge.net \
    --cc=pete@petertodd.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox