joseluislopez on Nostr: The greatest part of the code imo is the subsidy halving method where is never ...
The greatest part of the code imo is the subsidy halving method where is never directly stated the amount of #bitcoin mined after every halving. Instead, it starts with the original 5B #sats per block subsidy and the method just takes that amount in binary and eliminates the last bit of it, making it halved every time without stating the real amount left. That’s a masterpiece of code.
Published at
2024-09-09 00:45:11Event JSON
{
"id": "d537c3be5e79901d2d80e48d53c7f95b7cbfaa68f3c6f32e97b4bfcb943c7ee4",
"pubkey": "8a8a489c3cd87e5b18870494f79a8411d5d83caa43e4d3f599d0417f97b9ef91",
"created_at": 1725842711,
"kind": 1,
"tags": [
[
"e",
"71eea23b3842cec0d934fe914f7551f51d9236c78dd14130f6e3af020a64387a",
"wss://relay.wellorder.net",
"root"
],
[
"p",
"f728d9e6e7048358e70930f5ca64b097770d989ccd86854fe618eda9c8a38106"
],
[
"t",
"bitcoin"
],
[
"t",
"sats"
]
],
"content": "The greatest part of the code imo is the subsidy halving method where is never directly stated the amount of #bitcoin mined after every halving. Instead, it starts with the original 5B #sats per block subsidy and the method just takes that amount in binary and eliminates the last bit of it, making it halved every time without stating the real amount left. That’s a masterpiece of code.",
"sig": "a3cf4b28193ab48f5c69bd2eec97c9ca8e2f55e68498eb9bf26315d17bee835deb3f97d22fe6052af9de6adae2748950714b78564a3a8dc9f9c71fdf1b017592"
}