[BTC-dev] (EXPERIMENTAL) Wires (rev. 1)

Stanislav Datskovskiy stas at loper-os.org
Thu Feb 23 16:56:07 UTC 2017


Name: README.txt
URL: <http://therealbitcoin.org/ml/btc-dev/attachments/20170223/README.txt?sha1=6db58cd2ed58d6df5445011b3e3625f791565997>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512


**********************************************************************
*************************** ATTENTION! *******************************
**********************************************************************
This patch supercedes:
http://therealbitcoin.org/ml/btc-dev/2017-February/000250.html
which did not correctly handle sockets that died 'of natural causes.'
**********************************************************************


 /****************************\
*        EXTREME DANGER:       *
*    FOR LABORATORY USE ONLY.  *
********************************
          ************
         **************
        ****************
       ****   ****   ****
       ***     ***    ***
       ***     ***    ***
        ***    * *    **
        ******** ********
        *******   ******
            ***   **
          *  ******* **
          ** * * * * *
    **     *         *     ***
   ****    * *     * *    ****
   ****    *** * * **     ***
    ****    *********   ******
   *******    *****    *******
   *********        ****** **
    **   ******   ******
           **  *******       **
   **       *******         ***
  ****   ********  ************
  ************    ************
   ********             *******
  ******                   ****
   ***                      ***
********************************

'Wires' are a type of peer you can now specify on the command line
when revving up TRB, if you use this patch.

Wires don't get saved to the addr DB; they don't get shared with peers,
including one another; they don't ever voluntarily get disconnected;
if disconnected by other party, your node bangs on the door forever;
wires also carry no ban score. Think of them as 'leased lines.'
They are also permitted to connect to  ports on localhost!
(say, to tunnelers, e.g., 'g', or even ordinary ssh tunnel.)

TRB is still single-process and so specifying wires will not prevent,
e.g., slow block verification, from gumming up the works. However they
~will~ prevent the idiotic situation where known/trusted nodes were
treated equally to random scum.

Wires also will not cure the enemy's ability to arbitrarily monkey with
TCP connections. That is what 'g' (coming soon) is for.

A 'wire' link between Zoolag and Dulap is now in live-fire test.


***************
Example of Use:
***************

LC_ALL="C" /foo/bitcoind -datadir=/home/bitcoin/.bitcoin -myip=$wanip -addwire=46.166.165.30 2>&1 &
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQEcBAEBCgAGBQJYrxPZAAoJELmCKKABq//HA2oH/jLypcoqcwHt2yFJCZ54IYBU
6P/FayPhzyTxcL1xlWqgItzFficnjADu6wnhIFqPrkbj8xr1bgOuJjWtENohbTDn
0XiyA31synmMJ6lt+XBJHQy38U9Dbf4k7l8GKSyqlcodOoBGsNzp7VvIpKhTw8d1
BP6tqjEL/mv5qnbXaVKhMTwzLAkJFwhXZVpzlH9NlxGIuyHi9rO5slfvBS2tuviB
7YDPUFsjoy7+YNpvOdfw72IJZjW317beQrRtImJwDB0g1VDzXZRAsHuYKEg9ZwRF
s9o2dC+wOXZcT02il85i35ASE8OF2v9FyWhKV0f7A1+31houzM41gTYIAA/IJxg=
=tbxM
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: asciilifeform_wires_rev1.vpatch
Type: application/octet-stream
Size: 12872 bytes
Desc: not available
URL: <http://therealbitcoin.org/ml/btc-dev/attachments/20170223/asciilifeform_wires_rev1.vpatch?sha1=bb729ab434712d4f4f6d0eb5bbd5bc7bb574d810>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: asciilifeform_wires_rev1.asciilifeform.sig
Type: application/octet-stream
Size: 490 bytes
Desc: not available
URL: <http://therealbitcoin.org/ml/btc-dev/attachments/20170223/asciilifeform_wires_rev1.asciilifeform.sig?sha1=4ce19ef2255f0523e033b897121a35762828b60b>


More information about the BTC-dev mailing list