lian/bitcoin-ruby — pull request #4 by mhanne (2011-11-20 23:00:30+00:00)
Title: Network descriptors (allows to connect to testnet)

Add "Network Descriptors" for main and testnet, defining magic_head, address_version, default_port, dns_seeds and genesis_block.

Adjust message and address handling to differentiate between networks.

Issues:

1) This implementation only allows to use one network at a time;
it would be nice to be able to use different networks at the same time,
on the other hand we don't want to pass the network into every call...

2) I don't get the address generation.. I got it to work now, but it seems wrong.
According to https://en.bitcoin.it/wiki/Address there is no extra "add a 1 in front"
step at the end. And for testnet addresses it works just like that.
Why do we have to do it for normal addresses then? Is the wiki or am I missing something?