summaryrefslogtreecommitdiff
path: root/4f/4618b4c27cc7cbc26f356dd57a2269f047ad2d
blob: 1b33500b90bbf1d2adb5473c57384d5c3ab4be46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194]
	helo=mx.sourceforge.net)
	by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76)
	(envelope-from <mail@rbrune.de>) id 1Vi5pb-00033a-95
	for bitcoin-development@lists.sourceforge.net;
	Sun, 17 Nov 2013 17:08:19 +0000
X-ACL-Warn: 
Received: from tyrell.rbrune.de ([83.169.16.173])
	by sog-mx-4.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256)
	(Exim 4.76) id 1Vi5pZ-0006GW-8I
	for bitcoin-development@lists.sourceforge.net;
	Sun, 17 Nov 2013 17:08:19 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1]);
	authenticated	by tyrell.rbrune.de with ESMTPSA id 07F454240E8D
	for <bitcoin-development@lists.sourceforge.net>;
	Sun, 17 Nov 2013 17:43:15 +0100 (CET)
From: Rafael Brune <mail@rbrune.de>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Message-Id: <63B3BF21-C487-4D62-8BB8-18C90F2C3F4C@rbrune.de>
Date: Sun, 17 Nov 2013 17:43:14 +0100
To: bitcoin-development@lists.sourceforge.net
Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\))
X-Mailer: Apple Mail (2.1822)
X-Spam-Score: -0.5 (/)
X-Spam-Report: Spam Filtering performed by mx.sourceforge.net.
	See http://spamassassin.org/tag/ for more details.
	0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked.
	See
	http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
	for more information. [URIs: github.com]
	-0.5 RP_MATCHES_RCVD Envelope sender domain matches handover relay
	domain
X-Headers-End: 1Vi5pZ-0006GW-8I
Subject: [Bitcoin-development] Bitcoin Network Simulator
X-BeenThere: bitcoin-development@lists.sourceforge.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: <bitcoin-development.lists.sourceforge.net>
List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/bitcoin-development>,
	<mailto:bitcoin-development-request@lists.sourceforge.net?subject=unsubscribe>
List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum_name=bitcoin-development>
List-Post: <mailto:bitcoin-development@lists.sourceforge.net>
List-Help: <mailto:bitcoin-development-request@lists.sourceforge.net?subject=help>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/bitcoin-development>,
	<mailto:bitcoin-development-request@lists.sourceforge.net?subject=subscribe>
X-List-Received-Date: Sun, 17 Nov 2013 17:08:19 -0000

Over the last days I spent some time working on a simple Bitcoin network =
simulator.
It is a stochastic event-based continuous-time simulation of Bitcoin =
miners
exchanging messages and building block chains. It simulates latency, =
bandwidth=20
and also verification speed but it currently does not simulate =
propagation/inclusion
of transactions and instead uses random block sizes.

The simulator includes two examples, one for a 51% attack and the other =
is an
implementation of selfish mining (pretty much 1:1 as described in the =
paper).
With the random parameters I picked it seems like it pays off to mine =
selfish with
>=3D30% of the hashing power - but take this with a huge grain of salt =
as this
is with a very small network and randomly chosen parameters. And of =
course it
is not a perfect replica of the real world network.

Since this is based on my understanding of the Bitcoin network and =
protocol it
would be great if others would take a look and help improve it.

The project can be found on my github:
https://github.com/rbrune/btcsim

Regards,
 Rafael Brune=