# on receiving block 884403 here
$ date -u '+%Y-%m-%dT%H:%M:%SZ'
2025-02-19T01:37:57Z
# as written in the block header
2025-02-19T01:37:19Z

$ uptime   # since last reboot
 01:37:57 up 16 days, 13:17,  0 users,  load average: 0.49, 0.59, 0.63

$ battery.sh
100%, Power Supply Online

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

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

$ du -h -d1 .bitcoin/
1.0G	.bitcoin/testnet4
10.9G	.bitcoin/indexes
1.5G	.bitcoin/signet
5.9M	.bitcoin/wallets
97.8G	.bitcoin/blocks
11.4G	.bitcoin/chainstate
122.6G	.bitcoin/

$ df -h .
Filesystem                Size      Used Available Use% Mounted on
/dev/sda3               911.4G    832.7G     77.8G  91% /

$ bitcoind -version
Bitcoin Core version v28.1.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
884403

$ BH=$(bitcoin-cli getblockhash 884403); echo $BH
00000000000000000000d1f05a40ed3ac08e1f31eee3b177a5df22b343518ed4

$ bitcoin-cli getblockheader 00000000000000000000d1f05a40ed3ac08e1f31eee3b177a5df22b343518ed4
{
  "hash": "00000000000000000000d1f05a40ed3ac08e1f31eee3b177a5df22b343518ed4",
  "confirmations": 1,
  "height": 884403,
  "version": 536870912,
  "versionHex": "20000000",
  "merkleroot": "3daa731b91616dcbd70765141a391f4bb0ec9ffcbb43786e1558ecec9808d903",
  "time": 1739929039,
  "mediantime": 1739925715,
  "nonce": 2096938979,
  "bits": "17027726",
  "difficulty": 114167270716407.6,
  "chainwork": "0000000000000000000000000000000000000000af3ac8799d2f9877bd0836c8",
  "nTx": 2963,
  "previousblockhash": "0000000000000000000137739a6112a9c1f5292ca1688003fa189083ba918a74"
}


$ echo $BH | tr 0 . | fold -w 4 | paste -d " " - - - -
.... .... .... ....
.... d1f. 5a4. ed3a
c.8e 1f31 eee3 b177
a5df 22b3 4351 8ed4

$ : Following was the shortform
$ : from which shortkode came
$ last=${BH: -4}
$ 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
884403 sf: d1f. 5a4. c.8e 8ed4 

$ : Following was the shortkode
$ : from which anecdote came
$ nz=$(echo $BH | fold -w 4 \
  | grep -cE '^[^0]{4}$')
$ z=$(echo $BH | fold -w 4 \
  | grep -c '^0000$')
$ nzzs=$(((${nz}<<4)+${z}))
$ printf "%s sk: " $BC
$ printf "%s %x\n" \
    $last \
    $nzzs \
    | tr 0 .
884403 sk: 8ed4 85

$ : Following is an anecdote
$ all=$(echo $BH | fold -w 4 \
    | sed 's/^/0x/' \
    | paste -s | tr '\t' ^)
$ printf "%s ak: " $BC
$ printf "%04x %02x\n" \
    $(($all)) $nzzs \
    | tr 0 .
884403 ak: ac48 85

### niceblack moved to the end

$ bitcoin-cli getmempoolinfo
{
  "loaded": true,
  "size": 3191,
  "bytes": 12990496,
  "usage": 72333552,
  "total_fee": 0.13161450,
  "maxmempool": 500000000,
  "mempoolminfee": 0.00001000,
  "minrelaytxfee": 0.00001000,
  "incrementalrelayfee": 0.00001000,
  "unbroadcastcount": 0,
  "fullrbf": true
}

$ gmm.sh
1013

## Current epoch estimation is +0.9%
## 1395 of 2016, i.e. 69%, 621 to go
## Current and previous two in numbers:
$ bitcoin-cli getnetworkhashps 2016
8.244649782217338e+20
$ bitcoin-cli getnetworkhashps 2016 883007
8.171059232651056e+20
$ bitcoin-cli getnetworkhashps 2016 880991
7.735413493438086e+20

$ bitcoin-cli gettxoutsetinfo muhash
{
  "height": 884403,
  "bestblock": "00000000000000000000d1f05a40ed3ac08e1f31eee3b177a5df22b343518ed4",
  "txouts": 177000116,
  "bogosize": 13811289699,
  "muhash": "bac2e86e9c8f823d6c21e27ae557278fed8d69ff8dde4036c4248f65f4867520",
  "total_amount": 19826041.74652040,
  "total_unspendable_amount": 220.75347960,
  "block_info": {
    "prevout_spent": 1926.90042185,
    "coinbase": 3.14883100,
    "new_outputs_ex_coinbase": 1926.87659085,
    "unspendable": 0.00000000,
    "unspendables": {
      "genesis_block": 0.00000000,
      "bip30": 0.00000000,
      "scripts": 0.00000000,
      "unclaimed_rewards": 0.00000000
    }
  }
}

$ bitcoin-cli getblockstats 884403
{
  "avgfee": 804,
  "avgfeerate": 2,
  "avgtxsize": 581,
  "blockhash": "00000000000000000000d1f05a40ed3ac08e1f31eee3b177a5df22b343518ed4",
  "feerate_percentiles": [
    1,
    1,
    1,
    2,
    5
  ],
  "height": 884403,
  "ins": 8485,
  "maxfee": 138516,
  "maxfeerate": 85,
  "maxtxsize": 107057,
  "medianfee": 191,
  "mediantime": 1739925715,
  "mediantxsize": 308,
  "minfee": 110,
  "minfeerate": 1,
  "mintxsize": 150,
  "outs": 8886,
  "subsidy": 312500000,
  "swtotal_size": 1656328,
  "swtotal_weight": 3730219,
  "swtxs": 2863,
  "time": 1739929039,
  "total_out": 192687659085,
  "total_size": 1721764,
  "total_weight": 3991963,
  "totalfee": 2383100,
  "txs": 2963,
  "utxo_increase": 401,
  "utxo_size_inc": 2763,
  "utxo_increase_actual": -700,
  "utxo_size_inc_actual": -61141
}

$ bitcoin-cli getnettotals
{
  "totalbytesrecv": 8466396417,
  "totalbytessent": 15589617570,
  "timemillis": 1739929078236,
  "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.1.0 - server 70016/Satoshi:28.1.0/

         ipv4     npr   total   block  manual
in         32       2      34
out        11       0      11       2       1
total      43       2      45

Local addresses: n/a


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

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

bc=884403
gbt=1231006505
bbt=1739929039

This is average time to mine a block
(1739929039-1231006505)/884403
bts=575.4412395240184350138624

Now let's multiply that by 1050000
which is the block number of next
halving and get the prediction:
Sat Feb 26 23:26:21 UTC 2028

-------------------------------------
Next palindrome will be 884488
predicted to happen at this time:
Wed Feb 19 15:12:31 UTC 2025

-------------------------------------
Current mining epoch number is 438.
The next fortnight happens in block
885024 and probably around this time:
Sun Feb 23 04:53:08 UTC 2025

### v2_peerinfo are in v2_peerinfo-bitcoin.txt
$ bitcoin-cli getpeerinfo | grep -w 'v2' | uniq -c
     13     "transport_protocol_type": "v2",

$ bitcoin-cli getpeerinfo \
    | jq -r '.[]
      | select ( .transport_protocol_type == "v2" )
      | .addr + " " + .session_id' \
    | while read addr sid
      do
        a=$(echo ${addr%\]*} | tr -d '\[' | md5sum | cut -b-16);
        printf "%s\n\t%s\n" "$a" "$sid"
      done

37c7f821c95ca7c7
	bcc1181b947dbc3fdc898ea041c6c9b9ae9860d67e20b54edf2057e93027ec54
585b1df1ef44c35d
	283dfbd87e294b6639a53006099991f2df3f9d15bc023d4e2e52fbe78829614b
71f33e7505dd9b6c
	3ec7ee5d8cae99fa008d9758110ed7fa6f664f49824f2f1ff56777525bcdaac9
0b5d67c15d90ce16
	c93e39649f96598a3d90ffee36f6eabc2d674b9e8c38adb990c50d2c370ed459
1c2f537049e35144
	1b1deabb90772dc1a195f88ac8256c9015cbc68d6b5403c493a9b55385ba7005
a57fac9c29ae81bb
	6a629ff7a0f6ec4b2ddea6482d4e5e1b38b3b09520ed49112417d2e9c3f17ffe
b9b0dfc46822f73e
	dec4a9763f074f449f9b9a275948184ec70e95883e64e71c1a1cebbe3790759d
9614fb62b200d6a6
	4325b016884338ff5f6973ddc5ed7d675c1e21efd7b12e0e67b4adfb9c41a30f
0eb32a5f829b669c
	9ebea8f87eef616f6dcdf8bfc4e7414f3b11696fb7b205e78c0037a529a12a70
510625bb3d5a0955
	f0129ecd7975dba3577b8693688f3e5ce3bbc57fa1ec766bfe4c55bb377ae335
2d07f93aae429551
	19f2b9ef703d8a6ccbf16babefb72e6b792c518aa7765e36a8df1b0a7f2f0667
b9ac3628f57c8516
	7056a95f5ec01e093792941a9e2191e276884cba813654b7b06c44b2827c0c54
6a0bf98d6faf671c
	6800ffe7b47f55cf43c7f6a0cbb3a0447e1ef46b2afaba33fd091724c113ddff


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

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

  ,---   .123 4567 89ab cdef   ---,
  |      ABOVEisJUSTaSAMPLE^      |
  | ..   .... .... .... ....   .f |
  | 1.   .... d1f. 5a4. ed3a   1f |
  | 2.   c.8e 1f31 eee3 b177   2f |
  | 3.   a5df 22b3 4351 8ed4   3f |
  '===   ==== ==== ==== ====   ==='
   ak:   ac48 85