Skip to content

Instantly share code, notes, and snippets.

View WhoSoup's full-sized avatar
😿
sad cat

WhoSoup

😿
sad cat
View GitHub Profile
Summary of the PegNet 51% attack on 4/21/2020
=============================================
TL;DR: A miner or group of miners with more than 51% of hashpower submitted an
artificially inflated price for JPY, turning ~1,265.79 pJPY (~11.79 USD) into
~6.7mm pUSD, then tried to liquidate as much as they could on exchanges.
Timeline:
Block 241369
The address FA2dZeSVXZMVzGMGMqG5vhgoQ7J6LUjguQjC5RKTf7nRcFk9KvEj
@WhoSoup
WhoSoup / 241472
Created April 21, 2020 08:22
PegNet 51% attack, 4/21/2020
===================================
EBlock 241472 b30cffb2303b6cb98ca0750625993a8041d999e9cd47a024612eb7f52021d5fe
===================================
ID Miner ID Entry Hash JPY
1. Schr0dinger bd9b216252f3f65e0289bc793604464e887d97fc7a79ea09f6918d79b54c0f9f 0.009308
2. FlyingDutchman 56e848632e83539e4b56dccf94e32eb9a19c93c1778dadc9bb4788124b2fc5c7 0.009308
3. HedgehogsUnited a820b9ac0053f174bc38fcfe62512fb264c2b08fbafe30de510fa3efb6b11cae 0.009308
4. FlyingDutchman 9458f6c6fb6f84892ec5eb87ebf5593679a9e426d51b72c7b59df0002ddb4f4f 0.009308
5. FlyingDutchman a9f6d578447da0af238608830c63e541c42d8dcc9d417c5e3b85463f62279c1a 0.009308
6. MiningCenter 201b965be4f49da21502dcfd1b1af77bb8eb88f693d4adb9f4b0cc5e61151753 0.009308
@WhoSoup
WhoSoup / gist:9722804f43dbef01ff4f0812cf890d5d
Created January 5, 2020 00:56
[hashquark 2019/12/20 18:16:44] runtime error: index out of range
2019/12/20 18:16:44 http: panic serving xxx.xxx.xxx.xxx:35178: runtime error: index out of range
goroutine 189374 [running]:
net/http.(*conn).serve.func1(0xc02648dd60)
/usr/local/go/src/net/http/server.go:1769 +0x139
panic(0xce4400, 0x171a440)
/usr/local/go/src/runtime/panic.go:522 +0x1b5
github.com/FactomProject/factomd/wsapi.HandleV2Diagnostics(0x108af60, 0xc0000c8000, 0x0, 0x0, 0x1, 0x1, 0x2f)
/go/src/github.com/FactomProject/factomd/wsapi/wsapiV2.go:1588 +0x1143
github.com/FactomProject/factomd/wsapi.HandleV2JSONRequest(0x108af60, 0xc0000c8000, 0xc031fb3740, 0x0, 0x0)
/go/src/github.com/FactomProject/factomd/wsapi/wsapiV2.go:169 +0xb03
Time,PNMC,Factoshi
2019-12-10 13:34:41 +0000 UTC,0.00245624,0.00249919
2019-12-10 14:17:22 +0000 UTC,0.00241099,0.00240943
2019-12-10 14:18:23 +0000 UTC,0.00236338,0.00240943
2019-12-10 14:19:23 +0000 UTC,0.00236616,0.00236625
2019-12-10 14:20:23 +0000 UTC,0.00231900,0.00236558
2019-12-10 14:21:23 +0000 UTC,0.00227060,0.00231967
2019-12-10 14:22:23 +0000 UTC,0.00227241,0.00227178
2019-12-10 14:23:23 +0000 UTC,0.00232029,0.00231925
2019-12-10 14:24:23 +0000 UTC,0.00232017,0.00231888
INFO[0004] Starting sync job of 1017 blocks height=221240 syncing-to=222257
Query took: 866.098638ms
Query took: 819.950483ms
Query took: 857.136982ms
Query took: 934.746321ms
Query took: 831.586155ms
Query took: 993.641821ms
Query took: 841.34005ms
Query took: 856.918348ms
Query took: 1.0526962s
Top 100 PEG Rich List
Pos Address PEG pUSD
--- ------- --- ----
1 FA2aQnwN6p6RgaLBJYC5FvgMwEg1bMXXgVdUv81SWxE87dqz64A4 28245072.15670091 117623.21358792
2 FA32b7G2iEv5xHqB49prDQ4UzRNk1tat5KLKVPgjACeRv1PyTFsu 23803873.75894287 99128.37580426
3 FA2Tav4pLACg8JWMWa2VFKo6rV5R3DCDrhtkxxxfLTwPWx9k4E7Q 10350000 43101.333
4 FA3KJ7Av4td7F6B2BtUUkmdgrfZLoubrX53SnC1DZNNrzSF9fYsD 9800000 40810.924
5 FA3SjiVbV4JxGSTMX4SnF2fJoAC82kTHVzdCBgEUMeSDFKoVC5Qa 7636480.29011989 31801.20579056
6 FA3Zcpiv9LmagPPaR672WveUQ1RTK7Mq4P65QEhs6HYZJaEhg9hx 7000000 29150.66
7 FA3LDEA5fcskV6ZoFpKE84qPcjd7GYjEnswGHMZXL1V9d14wmgh3 6718461.42973908 27978.22640877
@WhoSoup
WhoSoup / gist:4448fa76d291c47cd1ec195744140842
Created November 19, 2019 09:01
pegnet decode eblock e269091786b0ac7c78c1ebb15f913e6966576382687e6a01685fc1ee64ce4688
[
{
"coinbase":"FA3rms2iUn7acEZ6rxNRvqZ6jg9KCWfoVUcAjyknUWj1PPtKx9kr",
"dbht":219428,
"winners":[
"22b8361b8970e2d0",
"08df86c5b80b1b08",
"9646f7b62a7d5e90",
"b957591e7303d284",
"6b2e967dedb10604",