Skip to content

Instantly share code, notes, and snippets.

@checksum0
checksum0 / gist:1e3e8618a94b8c3920b8b99aa846e6c0
Created January 2, 2024 06:05
A block requiring 639 TX to be requested to peers to be validated, validation time: 160 milliseconds.
2024-01-02T05:10:31Z [net] received: headers (82 bytes) peer=12
2024-01-02T05:10:31Z Saw new header hash=00000000000000000001272e749993807564e3c55524b0ed12f93fde3465c7c4 height=823969
2024-01-02T05:10:31Z [net] received: headers (82 bytes) peer=4
2024-01-02T05:10:31Z [net] received: headers (82 bytes) peer=3
2024-01-02T05:10:31Z [net] received: headers (82 bytes) peer=7
2024-01-02T05:10:31Z [net] Requesting block 00000000000000000001272e749993807564e3c55524b0ed12f93fde3465c7c4 from peer=12
2024-01-02T05:10:31Z [net] sending getdata (37 bytes) peer=12
2024-01-02T05:10:32Z [net] received: cmpctblock (17094 bytes) peer=12
2024-01-02T05:10:32Z [cmpctblock] Initialized PartiallyDownloadedBlock for block 00000000000000000001272e749993807564e3c55524b0ed12f93fde3465c7c4 using a cmpctblock of size 17094
2024-01-02T05:10:32Z [net] sending getblocktxn (674 bytes) peer=12
@checksum0
checksum0 / gist:dde3a6734ed7d9301671dd70516ed7f1
Created January 2, 2024 05:56
A block requiring 5 TX to be requested to peers to be validated, validation time: 20 milliseconds.
2024-01-02T05:52:09Z [net] received: cmpctblock (17681 bytes) peer=27
2024-01-02T05:52:09Z Saw new header hash=000000000000000000029999515a1c927b9f398d43b537f5588af53fcae93427 height=823973
2024-01-02T05:52:09Z [net] Saw new cmpctblock header hash=000000000000000000029999515a1c927b9f398d43b537f5588af53fcae93427 peer=27
2024-01-02T05:52:09Z [cmpctblock] Initialized PartiallyDownloadedBlock for block 000000000000000000029999515a1c927b9f398d43b537f5588af53fcae93427 using a cmpctblock of size 17681
2024-01-02T05:52:09Z [net] sending getblocktxn (44 bytes) peer=27
2024-01-02T05:52:09Z [net] received: headers (82 bytes) peer=23
2024-01-02T05:52:09Z [net] received: inv (73 bytes) peer=12
2024-01-02T05:52:09Z [net] got inv: wtx 1c902690403ad6cb3e44b5f40f6588b19dee34b66e04db506de5bfa25edbddd1 new peer=12
2024-01-02T05:52:09Z [net] got inv: wtx fe97d155678297f8b62ec4226d871fc602c9530b6e7555ba0a6419aec726b7e9 new peer=12
2024-01-02T05:52:09Z [net] Requesting wtx 1c902690403ad6cb3e44b5f40f6588b19dee34b66e04db506de5bfa2
@checksum0
checksum0 / gist:148ae012721616ef428f79506150e72d
Created January 1, 2024 23:51
First Ocean.xyz empty block
user@node:~$ tail -n 100 .bitcoin/debug.log
2024-01-01T20:29:06Z New block-relay-only v1 peer connected: version: 70016, blocks=823913, peer=2693
2024-01-01T20:30:09Z New block-relay-only v1 peer connected: version: 70016, blocks=823913, peer=2697
2024-01-01T20:35:52Z Saw new header hash=00000000000000000003b94037726344a0108985ca733160f703ad5af2901728 height=823914
2024-01-01T20:35:52Z UpdateTip: new best=00000000000000000003b94037726344a0108985ca733160f703ad5af2901728 height=823914 version=0x20000000 log2_work=94.639280 tx=946454672 date='2024-01-01T20:35:50Z' progress=1.000000 cache=298.7MiB(2339328txo)
2024-01-01T20:42:14Z Saw new header hash=000000000000000000028bf190c5024b02dc01d3c5877216bc8c8d938d164b58 height=823915
2024-01-01T20:42:14Z UpdateTip: new best=000000000000000000028bf190c5024b02dc01d3c5877216bc8c8d938d164b58 height=823915 version=0x2d20a000 log2_work=94.639294 tx=946458073 date='2024-01-01T20:41:43Z' progress=1.000000 cache=300.7MiB(2356241txo)
2024-01-01T20:44:26Z Saw new header hash=00000
@checksum0
checksum0 / gist:101ca17b71c7b713df95c54ae9124934
Last active December 11, 2023 03:00
Pool OPEX estimates
Assuming the following:
- A sensible pool infrastructure at 10EH/s, not 1EH/s;
- A badly distributed hashrate with 50% hashrate in North America, 25% in South America, 15% in Europe, and the remainder
in APAC;
- A block refresh interval at 30s with a target submitted shraes for vardiff at 10s;
- A network average efficiency at 30J/TH with a 3500W PSU, making it a 116.6TH/s machine;
- A 19 output coinbase like ocean.xyz (just for fun).
10,000,000 TH/s (aka 10EH/s) / 116TH/s/machine = 85,764 machines
@checksum0
checksum0 / gist:b9a02c96d12f354100421e3344303cd5
Created November 30, 2023 23:18
Ocean 30/11/2023 6:00PM EST Coinbase TX
user@hostname:~$ nc mine.ocean.xyz 3334
{"id": 1, "method": "mining.subscribe", "params": ["cgminer/4.11.1"]}
{"error": null, "id": 1, "result": [[["mining.notify", "cb0000001"], ["mining.set_difficulty", "cb0000002"]], "cb000000", 4]}
{"id": null, "method": "mining.set_difficulty", "params": [16383.75]}
{"id": null, "method": "mining.notify", "params": ["170138511668429", "51819bc67e888b8ea0b41c67a1f3cb7b959f1ef10003c9ba0000000000000000", "01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff1103ea7f0c0c0030303030302e303030000dffffffff14932eff050000000017a914e9a11b4472a03cc49cf601d2ff58148c2bcb96798776aac703000000002200205bd67532063d08caf543e49fdd15aed463095c948f49a36b1e94ab3240fd97d400000000000000000a6a08", "1297a2020000000022002042b46bc4bcf52f7261e4c49697c621f91dd168105fe30da731f108657e7799e848022d0200000000160014571177a5bea92de941f705b0570d61758c76fd0ed7bf220200000000160014d0905df59e367e44a32bc7d886e5fe9ba1fc2c44e36022020000000017a9148a968d2d3772c25b8e57d7232f7b7730cc889c6f872

Keybase proof

I hereby claim:

  • I am checksum0 on github.
  • I am checksum_0 (https://keybase.io/checksum_0) on keybase.
  • I have a public key ASA8RjGkC5vEK9t9UpcnjGRjjlxIr3mygM_MhdYEVJGgpAo

To claim this, I am signing this object:

@checksum0
checksum0 / checksum0-mysigningdata.json
Last active May 20, 2019 23:32
Transcript of the Schnorr Multisig Transaction 2b5fe26f6f903021b343da52d8d8b316c88986c480cfd6fc80ffbc027cbd2039
{
"privatekey": "a145c109b44521329421227a7d29b4bcbb4e75a37743435d2978c02cbb45842f",
"otherpubkeys": [
"03a0422f8642ac84303ec54029beeefd8cbdb4406ddfc82ae42f5f2034af090ff0",
"0363ef3146fa919573b87cdaaed9aa64124a258768232f4ce9b2e4989290bc6141"
],
"aggaddress": "bitcoincash:qr2n5jt6sfnd06ts25l9dqg2sycc8q6qvv6eyk65lq",
"note": "First multisig!"
}