# on receiving a block here $ date -u '+%Y-%m-%d %H:%M:%SZ' 2024-05-04 20:12:37Z # as written in the block header 2024-05-04 20:12:28Z $ uptime # since last reboot 20:12:37 up 186 days, 6:29, 0 users, load average: 1.08, 0.74, 0.52 $ battery.sh 97%, Power Supply Online $ uname -snrm Linux singer 6.1.42-0-lts #1-Alpine SMP PREEMPT_DYNAMIC Thu, 27 Jul 2023 12:27:13 +0000 x86_64 $ grep ^MemAvailable /proc/meminfo MemAvailable: 2209720 kB $ du -h -d1 .bitcoin/ 10.1G .bitcoin/indexes 1.9G .bitcoin/signet 12.9M .bitcoin/wallets 52.8G .bitcoin/blocks 11.3G .bitcoin/chainstate 3.4G .bitcoin/testnet3 79.7G .bitcoin/ $ df -h . Filesystem Size Used Available Use% Mounted on /dev/sda3 911.4G 671.9G 238.6G 74% / $ bitcoind --version Bitcoin Core version v27.0 Copyright (C) 2009-2024 The Bitcoin Core developers Please contribute if you find Bitcoin Core useful. Visit <https://bitcoincore.org/> for further information about the software. The source code is available from <https://github.com/bitcoin/bitcoin>. This is experimental software. Distributed under the MIT software license, see the accompanying file COPYING or <https://opensource.org/licenses/MIT> $ BC=$(bitcoin-cli getblockcount); echo $BC 842107 $ BH=$(bitcoin-cli getblockhash 842107); echo $BH 00000000000000000002ec85c6e66201bd1b271fd2abbf2cf7e783b8c9160856 $ bitcoin-cli getblockheader $BH { "hash": "00000000000000000002ec85c6e66201bd1b271fd2abbf2cf7e783b8c9160856", "confirmations": 1, "height": 842107, "version": 536870912, "versionHex": "20000000", "merkleroot": "66ffc8399c1218c27f619835d668ee490f30fd4c2f00b822e20d754d68d5e225", "time": 1714853548, "mediantime": 1714852343, "nonce": 1741729586, "bits": "170331db", "difficulty": 88104191118793.16, "chainwork": "000000000000000000000000000000000000000077cb48c847ca4102dd788788", "nTx": 5696, "previousblockhash": "00000000000000000000ef4b77d3da450a051b58b7e476d03bbd5dee5095fee9" } $ echo $BH | tr 0 . | fold -w 4 | paste -d " " - - - - .... .... .... .... ...2 ec85 c6e6 62.1 bd1b 271f d2ab bf2c f7e7 83b8 c916 .856 $ : Following is the shortform $ last=${BH#${BH%????}} $ a=$(echo $BH | cut -b-60 \ | fold -w 4 \ | grep -Ev '^(0000|[^0]{4})$') $ R=$(echo $a $last | cut -b-20) $ printf "%s sf: " $BC $ { echo $R | grep "$last$" \ || echo $R M; } | tr "0\n" ". " echo 842107 sf: ...2 62.1 .856 $ : Following is the shortkode $ last=${BH#${BH%????}} $ nz=$(echo $BH | fold -w 4 \ | grep -cE '^[^0]{4}$') $ z=$(echo $BH | fold -w 4 \ | grep -c '^0000$') $ printf "%s sk: " $BC $ printf "%s %x" $last \ $(((${nz}<<4)+${z})) \ | tr "0\n" ". "; echo 842107 sk: .856 94 $ niceblack.sh $BH $BC _ _ _ | |__| |___ __| |__ | '_ \ / _ \/ _| / / |_.__/_\___/\__|_\_\ ___ _ _ ___ _ __ ____ ( _ ) | |_ ) |/ \__ | / _ \_ _/ /| | () |/ / \___/ |_/___|_|\__//_/ ,--- .123 4567 89ab cdef ---, | .. .... .... .... .... .f | | 1. ...2 ec85 c6e6 62.1 1f | | 2. bd1b 271f d2ab bf2c 2f | | 3. f7e7 83b8 c916 .856 3f | '=== ==== ==== ==== ==== ===' sf: ...2 62.1 .856 sk: .856 94 ..............|. |||.||..|....|.| $ bitcoin-cli getmempoolinfo { "loaded": true, "size": 20837, "bytes": 55072189, "usage": 210036656, "total_fee": 4.05431239, "maxmempool": 1500000000, "mempoolminfee": 0.00001000, "minrelaytxfee": 0.00001000, "incrementalrelayfee": 0.00001000, "unbroadcastcount": 0, "fullrbf": true } # current and previous two $ bitcoin-cli getnetworkhashps -1 6.149477226011482e+20 $ bitcoin-cli getnetworkhashps -1 840671 6.304409353452951e+20 $ bitcoin-cli getnetworkhashps -1 838655 6.182828247491896e+20 $ bitcoin-cli gettxoutsetinfo muhash { "height": 842107, "bestblock": "00000000000000000002ec85c6e66201bd1b271fd2abbf2cf7e783b8c9160856", "txouts": 181561805, "bogosize": 13947973599, "muhash": "a77a4becf878ce3bc1f6eb8e95e2f622186344f7dacd25d12caca92f33f1d6ac", "total_amount": 19693867.99266567, "total_unspendable_amount": 219.50733433, "block_info": { "prevout_spent": 502.37496574, "coinbase": 3.39959088, "new_outputs_ex_coinbase": 502.10037486, "unspendable": 0.00000000, "unspendables": { "genesis_block": 0.00000000, "bip30": 0.00000000, "scripts": 0.00000000, "unclaimed_rewards": 0.00000000 } } } $ bitcoin-cli getblockstats 842107 { "avgfee": 4821, "avgfeerate": 27, "avgtxsize": 244, "blockhash": "00000000000000000002ec85c6e66201bd1b271fd2abbf2cf7e783b8c9160856", "feerate_percentiles": [ 22, 25, 26, 27, 29 ], "height": 842107, "ins": 7199, "maxfee": 400788, "maxfeerate": 356, "maxtxsize": 14793, "medianfee": 3340, "mediantime": 1714852343, "mediantxsize": 182, "minfee": 1638, "minfeerate": 8, "mintxsize": 150, "outs": 13106, "subsidy": 312500000, "swtotal_size": 1261141, "swtotal_weight": 3470257, "swtxs": 5592, "time": 1714853548, "total_out": 50210037486, "total_size": 1391572, "total_weight": 3991981, "totalfee": 27459088, "txs": 5696, "utxo_increase": 5907, "utxo_size_inc": 375687, "utxo_increase_actual": 1026, "utxo_size_inc_actual": 79311 } $ bitcoin-cli getnettotals { "totalbytesrecv": 1283874224, "totalbytessent": 1532370033, "timemillis": 1714853558368, "uploadtarget": { "timeframe": 86400, "target": 0, "target_reached": false, "serve_historical_blocks": true, "bytes_left_in_cycle": 0, "time_left_in_cycle": 0 } } $ bitcoin-cli -netinfo Bitcoin Core client v27.0 - server 70016/Satoshi:27.0.0/ ipv4 onion npr total block manual in 51 0 18 69 out 7 4 0 11 2 1 total 58 4 18 80 Local addresses 176.112.184.220 port 8333 score 4572 gifm4fnj3vua664xhgeanx5fnpco3txkqy4amr4txbfsciiyrkxpf2qd.onion port 8333 score 4 $ bitcoin-cli -addrinfo { "addresses_known": { "ipv4": 51806, "ipv6": 9, "onion": 14907, "i2p": 0, "cjdns": 0, "total": 66722 } } $ halving.sh 842107 ===================================== Bitcoin Block Halving prediction ===================================== bc=842107 gbt=1231006505 bbt=1714853548 This is average time to mine a block (1714853548-1231006505)/842107 bts=574.5664962213872804913384 Now let's multiply that by 1050000 which is the block number of next halving and get the prediction: Wed Feb 16 08:18:20 UTC 2028 ------------------------------------- Next palindrome will be 842248 predicted to happen at this time: Sun May 5 18:42:41 UTC 2024 ------------------------------------- Current mining epoch number is 417. The next fortnight happens in block 842688 and probably around this time: Wed May 8 16:56:11 UTC 2024 ### v2_peerinfo are in v2_peerinfo-bitcoin.txt