# on receiving block 863272 here
$ date -u '+%Y-%m-%dT%H:%M:%SZ'
2024-09-28T23:29:28Z
# as written in the block header
2024-09-28T23:29:01Z

$ uptime   # since last reboot
 23:29:27 up 55 days, 16:47,  0 users,  load average: 0.85, 0.71, 0.66

$ battery.sh
95%, Power Supply Online

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

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

$ du -h -d1 .bitcoin/
520.4M	.bitcoin/testnet4
10.5G	.bitcoin/indexes
2.9G	.bitcoin/signet
28.5M	.bitcoin/wallets
89.8G	.bitcoin/blocks
11.8G	.bitcoin/chainstate
2.5M	.bitcoin/testnet3
115.6G	.bitcoin/

$ df -h .
Filesystem                Size      Used Available Use% Mounted on
/dev/sda3               911.4G    769.4G    141.1G  85% /

$ 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
863272

$ BH=$(bitcoin-cli getblockhash 863272); echo $BH
00000000000000000002cd5dbae8e88756cd34ce301feee81ab1f7146f67828b

$ 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 " " - - - -
.... .... .... ....
...2 cd5d bae8 e887
56cd 34ce 3.1f eee8
1ab1 f714 6f67 828b

$ : 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
863272 sf: ...2 3.1f 828b 

$ : 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
863272 sk: 828b a4

$ niceblack.sh $BH $BC
  ___    __ ____    ___ ______ ___  
 / _ \  / /|___ \  |__ \____  |__ \ 
| (_) |/ /_  __) |    ) |  / /   ) |
 > _ <| '_ \|__ <    / /  / /   / / 
| (_) | (_) |__) |  / /_ / /   / /_ 
 \___/ \___/____/  |____/_/   |____|

  ,---   .123 4567 89ab cdef   ---,
  | ..   .... .... .... ....   .f |
  | 1.   ...2 cd5d bae8 e887   1f |
  | 2.   56cd 34ce 3.1f eee8   2f |
  | 3.   1ab1 f714 6f67 828b   3f |
  '===   ==== ==== ==== ====   ==='
   sk:   828b a4

$ bitcoin-cli getmempoolinfo
{
  "loaded": true,
  "size": 3911,
  "bytes": 50172672,
  "usage": 272260896,
  "total_fee": 0.77781711,
  "maxmempool": 300000000,
  "mempoolminfee": 0.00001745,
  "minrelaytxfee": 0.00001000,
  "incrementalrelayfee": 0.00001000,
  "unbroadcastcount": 0,
  "fullrbf": true
}

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

$ bitcoin-cli getnetworkhashps -1 862847
6.31930928191126e+20

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

$ bitcoin-cli gettxoutsetinfo muhash
{
  "height": 863272,
  "bestblock": "00000000000000000002cd5dbae8e88756cd34ce301feee81ab1f7146f67828b",
  "txouts": 185828921,
  "bogosize": 14371772956,
  "muhash": "1f05eb2ab8a9d56b2f02b254af115453fe134d1aa5c1913ae6fb461d5fb92593",
  "total_amount": 19760008.61590413,
  "total_unspendable_amount": 219.50909587,
  "block_info": {
    "prevout_spent": 3118.71747845,
    "coinbase": 3.18216622,
    "new_outputs_ex_coinbase": 3118.66031223,
    "unspendable": 0.00000000,
    "unspendables": {
      "genesis_block": 0.00000000,
      "bip30": 0.00000000,
      "scripts": 0.00000000,
      "unclaimed_rewards": 0.00000000
    }
  }
}

$ bitcoin-cli getblockstats 863272
{
  "avgfee": 1993,
  "avgfeerate": 5,
  "avgtxsize": 544,
  "blockhash": "00000000000000000002cd5dbae8e88756cd34ce301feee81ab1f7146f67828b",
  "feerate_percentiles": [
    2,
    3,
    4,
    6,
    10
  ],
  "height": 863272,
  "ins": 7711,
  "maxfee": 266100,
  "maxfeerate": 260,
  "maxtxsize": 115773,
  "medianfee": 697,
  "mediantime": 1727562137,
  "mediantxsize": 223,
  "minfee": 222,
  "minfeerate": 1,
  "mintxsize": 150,
  "outs": 9351,
  "subsidy": 312500000,
  "swtotal_size": 1378278,
  "swtotal_weight": 3263337,
  "swtxs": 2704,
  "time": 1727566141,
  "total_out": 311866031223,
  "total_size": 1560433,
  "total_weight": 3991957,
  "totalfee": 5716622,
  "txs": 2868,
  "utxo_increase": 1640,
  "utxo_size_inc": 119271,
  "utxo_increase_actual": 1047,
  "utxo_size_inc_actual": 82701
}

$ bitcoin-cli getnettotals
{
  "totalbytesrecv": 1918925481,
  "totalbytessent": 5371278764,
  "timemillis": 1727566168573,
  "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         40       0      16      56
out         4       7       0      11       2       1
total      44       7      16      67

Local addresses
176.112.177.189                                                    port   8333    score   4237
gifm4fnj3vua664xhgeanx5fnpco3txkqy4amr4txbfsciiyrkxpf2qd.onion     port   8333    score      4

$ bitcoin-cli -addrinfo
{
  "addresses_known": {
    "ipv4": 51450,
    "ipv6": 0,
    "onion": 14722,
    "i2p": 0,
    "cjdns": 0,
    "total": 66172
  }
}

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

bc=863272
gbt=1231006505
bbt=1727566141

This is average time to mine a block
(1727566141-1231006505)/863272
bts=575.2057993241998765164669

Now let's multiply that by 1050000
which is the block number of next
halving and get the prediction:
Thu Feb 24 02:46:09 UTC 2028

-------------------------------------
Next palindrome will be 863368
predicted to happen at this time:
Sun Sep 29 14:49:20 UTC 2024

-------------------------------------
Current mining epoch number is 428.
The next fortnight happens in block
864864 and probably around this time:
Wed Oct  9 13:51:08 UTC 2024

### v2_peerinfo are in v2_peerinfo-bitcoin.txt