# on receiving block 861183 here
$ date -u '+%Y-%m-%dT%H:%M:%SZ'
2024-09-13T19:27:20Z
# as written in the block header
2024-09-13T19:26:57Z

$ uptime   # since last reboot
 19:27:20 up 40 days, 12:45,  0 users,  load average: 3.13, 1.26, 0.93

$ battery.sh
95%, Power Supply Online

$ uname -smnr
Linux singer 6.6.37-0-lts x86_64

$ grep ^MemAvailable /proc/meminfo
MemAvailable:    1877036 kB

$ du -h -d1 .bitcoin/
500.0M	.bitcoin/testnet4
10.5G	.bitcoin/indexes
2.8G	.bitcoin/signet
26.9M	.bitcoin/wallets
86.0G	.bitcoin/blocks
11.7G	.bitcoin/chainstate
2.5M	.bitcoin/testnet3
111.7G	.bitcoin/

$ df -h .
Filesystem                Size      Used Available Use% Mounted on
/dev/sda3               911.4G    765.4G    145.1G  84% /

$ bitcoind --version
Bitcoin Core version v28.99.0-4835bba2cb13
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
861183

$ BH=$(bitcoin-cli getblockhash 861183); echo $BH
0000000000000000000015b34cbac19a8af9d61d0dc4cf4ab667e73c3646b598

$ bitcoin-cli getblockheader $BH
{
  "hash": "0000000000000000000177e5df18154411cf2f9ea4fa4e3f7fbbed9b6fc75e0d",
  "confirmations": 1,
  "height": 855601,
  "version": 537083904,
  "versionHex": "20034000",
  "merkleroot": "1f3f3c3fc7b44de7c79df750712a334ea83dbb10dd47c57a789d6dd049b432c8",
  "time": 1722919934,
  "mediantime": 1722917249,
  "nonce": 2205577874,
  "bits": "17031abe",
  "difficulty": 90666502495565.78,
  "chainwork": "0000000000000000000000000000000000000000876c314d1b2244b4226cab8c",
  "nTx": 1,
  "previousblockhash": "00000000000000000001187df2cd86998c727058ce11aa92b2fc97abb7816728"
}

$ echo $BH | tr 0 . | fold -w 4 | paste -d " " - - - -
.... .... .... ....
.... 15b3 4cba c19a
8af9 d61d .dc4 cf4a
b667 e73c 3646 b598

$ : Following was the shortform
$ : from which shortkode came
$ 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
861183 sf: .dc4 b598 

$ : 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
861183 sk: b598 a5

$ niceblack.sh $BH $BC
        #####   #####    #   
       #     # #     #  ##   
       #     # #       # #   
        #####  ######    #   
       #     # #     #   #   
        #####   #####  ##### 

         #    #####   #####  
        ##   #     # #     # 
       # #   #     #       # 
         #    #####   #####  
         #   #     #       # 
         #   #     # #     # 
       #####  #####   #####  

  ,---   .123 4567 89ab cdef   ---,
  | ..   .... .... .... ....   .f |
  | 1.   .... 15b3 4cba c19a   1f |
  | 2.   8af9 d61d .dc4 cf4a   2f |
  | 3.   b667 e73c 3646 b598   3f |
  '===   ==== ==== ==== ====   ==='
   sk:   b598 a5

$ bitcoin-cli getmempoolinfo
{
  "loaded": true,
  "size": 17865,
  "bytes": 54145562,
  "usage": 281190288,
  "total_fee": 0.91311123,
  "maxmempool": 300000000,
  "mempoolminfee": 0.00001918,
  "minrelaytxfee": 0.00001000,
  "incrementalrelayfee": 0.00001000,
  "unbroadcastcount": 0,
  "fullrbf": true
}

# current and previous two
$ bitcoin-cli getnetworkhashps -1
6.032147197646893e+20

$ bitcoin-cli getnetworkhashps -1 860831
6.627514485238024e+20

$ bitcoin-cli getnetworkhashps -1 858815
6.403033835124423e+20

$ bitcoin-cli gettxoutsetinfo muhash
{
  "height": 861183,
  "bestblock": "0000000000000000000015b34cbac19a8af9d61d0dc4cf4ab667e73c3646b598",
  "txouts": 186182530,
  "bogosize": 14392251961,
  "muhash": "9b33db6918555e5041aaa2c63f32650fc66f2da6d92a553a7f0f201b74c36d70",
  "total_amount": 19753480.49101895,
  "total_unspendable_amount": 219.50898105,
  "block_info": {
    "prevout_spent": 10281.85474815,
    "coinbase": 3.19732572,
    "new_outputs_ex_coinbase": 10281.78242243,
    "unspendable": 0.00000000,
    "unspendables": {
      "genesis_block": 0.00000000,
      "bip30": 0.00000000,
      "scripts": 0.00000000,
      "unclaimed_rewards": 0.00000000
    }
  }
}

$ bitcoin-cli getblockstats 861183
{
  "avgfee": 2151,
  "avgfeerate": 7,
  "avgtxsize": 491,
  "blockhash": "0000000000000000000015b34cbac19a8af9d61d0dc4cf4ab667e73c3646b598",
  "feerate_percentiles": [
    4,
    4,
    4,
    6,
    10
  ],
  "height": 861183,
  "ins": 7829,
  "maxfee": 367293,
  "maxfeerate": 315,
  "maxtxsize": 143105,
  "medianfee": 770,
  "mediantime": 1726253486,
  "mediantxsize": 222,
  "minfee": 385,
  "minfeerate": 2,
  "mintxsize": 150,
  "outs": 10194,
  "subsidy": 312500000,
  "swtotal_size": 1537862,
  "swtotal_weight": 3530561,
  "swtxs": 3150,
  "time": 1726255617,
  "total_out": 1028178242243,
  "total_size": 1653142,
  "total_weight": 3991681,
  "totalfee": 7232572,
  "txs": 3363,
  "utxo_increase": 2365,
  "utxo_size_inc": 165400,
  "utxo_increase_actual": 1445,
  "utxo_size_inc_actual": 110890
}

$ bitcoin-cli getnettotals
{
  "totalbytesrecv": 54194049,
  "totalbytessent": 83580577,
  "timemillis": 1726255641518,
  "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 v28.99.0-4835bba2cb13 - server 70016/Satoshi:28.99.0/

         ipv4   onion     npr   total   block  manual
in         48       0       4      52
out         4       7       0      11       2       1
total      52       7       4      63

Local addresses
176.112.180.169                                                    port   8333    score    308
gifm4fnj3vua664xhgeanx5fnpco3txkqy4amr4txbfsciiyrkxpf2qd.onion     port   8333    score      4

$ bitcoin-cli -addrinfo
{
  "addresses_known": {
    "ipv4": 52137,
    "ipv6": 0,
    "onion": 14874,
    "i2p": 0,
    "cjdns": 0,
    "total": 67011
  }
}

$ halving.sh 861183
=====================================
  Bitcoin Block Halving prediction
=====================================

bc=861183
gbt=1231006505
bbt=1726255617

This is average time to mine a block
(1726255617-1231006505)/861183
bts=575.0793233501783590963139

Now let's multiply that by 1050000
which is the block number of next
halving and get the prediction:
Tue Feb 22 13:52:49 UTC 2028

-------------------------------------
Next palindrome will be 862268
predicted to happen at this time:
Sat Sep 21 00:46:18 UTC 2024

-------------------------------------
Current mining epoch number is 427.
The next fortnight happens in block
862848 and probably around this time:
Tue Sep 24 21:25:24 UTC 2024

### v2_peerinfo are in v2_peerinfo-bitcoin.txt