Rafael Brune [ARCHIVE] on Nostr: 📅 Original date posted:2013-11-17 📝 Original message:Over the last days I spent ...
📅 Original date posted:2013-11-17
📝 Original message: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
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
>=30% 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/btcsimRegards,
Rafael Brune
Published at
2023-06-07 15:09:46Event JSON
{
"id": "f8232b4e76dc0786ff2ea4b454b8f1f34a7b1216db36d6890e1e62254216404d",
"pubkey": "e5e80baecf87a3d963680e2109bb647e44b6216765d327a6eca08bfe9738c3d7",
"created_at": 1686150586,
"kind": 1,
"tags": [
[
"e",
"c3850115cb93d15d044253ac0aaf63412fb3e9ccbfd46d33675ec61d0a397e97",
"",
"reply"
],
[
"p",
"a23dbf6c6cc83e14cc3df4e56cc71845f611908084cfe620e83e40c06ccdd3d0"
]
],
"content": "📅 Original date posted:2013-11-17\n📝 Original message:Over the last days I spent some time working on a simple Bitcoin network simulator.\nIt is a stochastic event-based continuous-time simulation of Bitcoin miners\nexchanging messages and building block chains. It simulates latency, bandwidth \nand also verification speed but it currently does not simulate propagation/inclusion\nof transactions and instead uses random block sizes.\n\nThe simulator includes two examples, one for a 51% attack and the other is an\nimplementation of selfish mining (pretty much 1:1 as described in the paper).\nWith the random parameters I picked it seems like it pays off to mine selfish with\n\u003e=30% of the hashing power - but take this with a huge grain of salt as this\nis with a very small network and randomly chosen parameters. And of course it\nis not a perfect replica of the real world network.\n\nSince this is based on my understanding of the Bitcoin network and protocol it\nwould be great if others would take a look and help improve it.\n\nThe project can be found on my github:\nhttps://github.com/rbrune/btcsim\n\nRegards,\n Rafael Brune",
"sig": "521821857d75c9e2f3ff819d62dae08dabb92e5fb37b9cf990b51c4b941415f7236ebc898c65db80b9752a5dbb6e92f7b2ca9179cd33fc66e2495dec97cc97be"
}