Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1Wapn4-0001CE-0R for bitcoin-development@lists.sourceforge.net; Thu, 17 Apr 2014 17:07:58 +0000 Received-SPF: pass (sog-mx-4.v43.ch3.sourceforge.com: domain of gmail.com designates 209.85.160.177 as permitted sender) client-ip=209.85.160.177; envelope-from=gavinandresen@gmail.com; helo=mail-yk0-f177.google.com; Received: from mail-yk0-f177.google.com ([209.85.160.177]) by sog-mx-4.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1Wapn0-0000MX-7a for bitcoin-development@lists.sourceforge.net; Thu, 17 Apr 2014 17:07:57 +0000 Received: by mail-yk0-f177.google.com with SMTP id q200so560544ykb.8 for ; Thu, 17 Apr 2014 10:07:48 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.236.84.227 with SMTP id s63mr24260137yhe.26.1397754468754; Thu, 17 Apr 2014 10:07:48 -0700 (PDT) Received: by 10.170.133.140 with HTTP; Thu, 17 Apr 2014 10:07:48 -0700 (PDT) In-Reply-To: References: Date: Thu, 17 Apr 2014 13:07:48 -0400 Message-ID: From: Gavin Andresen To: =?UTF-8?B?Sm9yZ2UgVGltw7Nu?= Content-Type: multipart/alternative; boundary=20cf3011dd8597e92e04f7401245 X-Spam-Score: -0.6 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (gavinandresen[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 1.0 HTML_MESSAGE BODY: HTML included in message -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-Headers-End: 1Wapn0-0000MX-7a Cc: Bitcoin Dev Subject: Re: [Bitcoin-development] Timed testing X-BeenThere: bitcoin-development@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Apr 2014 17:07:58 -0000 --20cf3011dd8597e92e04f7401245 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, Apr 17, 2014 at 12:09 PM, Jorge Tim=C3=B3n wro= te: > So it seems a new mode only makes sense if the -private mode makes > sense, which in turn only makes sense to include in bitcoind if it's > useful enough for the network attack simulations, which remains the > open question. > Unless I misunderstood what your private mode does, you can get the same effect with -regtest by just controlling nodes connectivity. For example: Start 2 nodes, connected to each other. Mine a -regtest chain they both agree on. Restart them so they're not connected. Have one mine normally, have the other mine... however you like to simulate some attack (deep chain re-org, double-spend, whatever). To simulate launching the attack, connect them together again, let the two chains compete and see what happens. --=20 -- Gavin Andresen --20cf3011dd8597e92e04f7401245 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On T= hu, Apr 17, 2014 at 12:09 PM, Jorge Tim=C3=B3n <jtimon@monetize.io>= ; wrote:
So it seems a new mode only makes sense if = the -private mode makes
sense, which in turn only makes sense to include in bitcoind if it's useful enough for the network attack simulations, which remains the
open question.

Unless I misunderstood what your private mode does, = you can get the same
effect with -regtest b= y just controlling nodes connectivity. For example:

Start 2 nodes, connected to each other= . Mine a -regtest chain they both agree on.

Restart them so they're not conne= cted. =C2=A0Have one mine normally,
have the other =C2=A0mine... however you like to= simulate some attack (deep chain re-org, double-spend,
whatever).

To simulate launching the attack, connect them together again, let the two= chains compete and see
what happens.

--=C2=A0
--
Gavin A= ndresen
--20cf3011dd8597e92e04f7401245--