# on receiving block 894035 here
$ date -u '+%Y-%m-%dT%H:%M:%SZ'
2025-04-26T07:45:07Z
# as written in the block header
2025-04-26T07:44:40Z

$ uptime   # since last reboot
 07:45:07 up 82 days, 19:24,  0 users,  load average: 1.10, 1.19, 1.45

$ battery.sh
125%, Power Supply Online

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

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

$ du -h -d1 .bitcoin/
11.1G	.bitcoin/indexes
1.7G	.bitcoin/signet
3.5M	.bitcoin/wallets
97.7G	.bitcoin/blocks
11.2G	.bitcoin/chainstate
121.6G	.bitcoin/

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

$ bitcoind -version
Bitcoin Core daemon version v29.0
Copyright (C) 2009-2025 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
894035

$ BH=$(bitcoin-cli getblockhash 894035); echo $BH
0000000000000000000193217e8cd8961a7c2c11cac6190ea5c6ed0081fda41f

$ bitcoin-cli getblockheader 0000000000000000000193217e8cd8961a7c2c11cac6190ea5c6ed0081fda41f
{
  "hash": "0000000000000000000193217e8cd8961a7c2c11cac6190ea5c6ed0081fda41f",
  "confirmations": 1,
  "height": 894035,
  "version": 538165248,
  "versionHex": "2013c000",
  "merkleroot": "c492f92a6c0ffa6c166137eb73f23a44d0f9a8beb1b9ea78c9955f05a1fe608d",
  "time": 1745653480,
  "mediantime": 1745649588,
  "nonce": 3381877282,
  "bits": "170248b6",
  "target": "0000000000000000000248b60000000000000000000000000000000000000000",
  "difficulty": 123234387977050.9,
  "chainwork": "0000000000000000000000000000000000000000bea5914af6b069d552846188",
  "nTx": 3552,
  "previousblockhash": "00000000000000000001206d2a9f25d4f2182c7f01c68945ab95b48db5657f81"
}


$ echo $BH | tr 0 . | fold -w 4 | paste -d " " - - - -
.... .... .... ....
...1 9321 7e8c d896
1a7c 2c11 cac6 19.e
a5c6 ed.. 81fd a41f

$ : 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
894035 sf: ...1 19.e ed.. a41f 

$ : 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 .
894035 sk: a41f 94

$ : 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 .
894035 ak: bdbb 94

### niceblack moved to the end

$ bitcoin-cli getmempoolinfo
{
  "loaded": true,
  "size": 3019,
  "bytes": 1591975,
  "usage": 8327808,
  "total_fee": 0.01716293,
  "maxmempool": 300000000,
  "mempoolminfee": 0.00001000,
  "minrelaytxfee": 0.00001000,
  "incrementalrelayfee": 0.00001000,
  "unbroadcastcount": 0,
  "fullrbf": true
}

$ gmm.sh
1074

## Current epoch estimation is -2%
## 947 of 2016, i.e. 46%, 1069 to go
## Current and previous two in numbers:
$ bitcoin-cli getnetworkhashps 2016
8.644927121382568e+20
$ bitcoin-cli getnetworkhashps 2016 893087
8.821342073060424e+20
$ bitcoin-cli getnetworkhashps 2016 891071
8.697135835318949e+20

$ bitcoin-cli gettxoutsetinfo muhash
{
  "height": 894035,
  "bestblock": "0000000000000000000193217e8cd8961a7c2c11cac6190ea5c6ed0081fda41f",
  "txouts": 174516255,
  "bogosize": 13656660752,
  "muhash": "e7cc2936f9bb6f772ebb07a8e6524bef5a752c485dacd1b8e9f0dd095b3f9c89",
  "total_amount": 19856141.49547935,
  "total_unspendable_amount": 221.00452065,
  "block_info": {
    "prevout_spent": 9321.45724710,
    "coinbase": 3.17038383,
    "new_outputs_ex_coinbase": 9321.41186127,
    "unspendable": 0.00000200,
    "unspendables": {
      "genesis_block": 0.00000000,
      "bip30": 0.00000000,
      "scripts": 0.00000200,
      "unclaimed_rewards": 0.00000000
    }
  }
}

$ bitcoin-cli getblockstats 894035
{
  "avgfee": 1278,
  "avgfeerate": 4,
  "avgtxsize": 424,
  "blockhash": "0000000000000000000193217e8cd8961a7c2c11cac6190ea5c6ed0081fda41f",
  "feerate_percentiles": [
    1,
    2,
    2,
    3,
    5
  ],
  "height": 894035,
  "ins": 7323,
  "maxfee": 423000,
  "maxfeerate": 3016,
  "maxtxsize": 29533,
  "medianfee": 456,
  "mediantime": 1745649588,
  "mediantxsize": 226,
  "minfee": 0,
  "minfeerate": 0,
  "mintxsize": 150,
  "outs": 9581,
  "subsidy": 312500000,
  "swtotal_size": 1283433,
  "swtotal_weight": 3099498,
  "swtxs": 3304,
  "time": 1745653480,
  "total_out": 932141186327,
  "total_size": 1506555,
  "total_weight": 3991986,
  "totalfee": 4538383,
  "txs": 3552,
  "utxo_increase": 2258,
  "utxo_size_inc": 170082,
  "utxo_increase_actual": 1927,
  "utxo_size_inc_actual": 144266
}

$ bitcoin-cli getnettotals
{
  "totalbytesrecv": 3041559343,
  "totalbytessent": 5848679394,
  "timemillis": 1745653507832,
  "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 v29.0 - server 70016/Satoshi:29.0.0/

         ipv4     npr   total   block
in         29       2      31
out        10       0      10       2
total      39       2      41

Local addresses: n/a


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

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

bc=894035
gbt=1231006505
bbt=1745653480

This is average time to mine a block
(1745653480-1231006505)/894035
bts=575.6445769521585260548792

Now let's multiply that by 1050000
which is the block number of next
halving and get the prediction:
Tue Feb 29 10:44:46 UTC 2028

-------------------------------------
Next palindrome will be 894498
predicted to happen at this time:
Tue Apr 29 09:46:43 UTC 2025

-------------------------------------
Current mining epoch number is 443.
The next fortnight happens in block
895104 and probably around this time:
Sat May  3 10:40:44 UTC 2025

### v2_peerinfo are in v2_peerinfo-bitcoin.txt
$ bitcoin-cli getpeerinfo | grep -w 'v2' | uniq -c
     11     "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

d6fc965c65af86ac
	2115727518daebb7f3c849acca75dd8255bdd333420ca5b55093361b8541b00e
6da69fcc632249b1
	ed86c6b22ce123d37b75fc8867356c7c52d07741f0db5bdf47b92227b4314719
bfa37a27ec2b3206
	09a2f47a97582776a61d6ca4ebc7c0143153b728854096909738fe82aef5aeae
179fad666f35746f
	23e89a5294580aea11554a4e27cbcbf1f9707f8cebfb3861c143ea9f30757d0a
a671ff28c00ef59a
	0774cafc7851e4b5e24275d275af7d7b5ee322df78c0b4fab0c631ebd6df181d
a57e3b46100062ef
	87fd2de45e464e708754329c12bb4d02c83af69f0d99f3a5974813b64fce3869
f7d95f13caaba3a0
	b7cef208045489fdcbf226b6dc5dc9db49f37cc681f0cd2e7822ef199f36ecaa
bcf4ab8f43351099
	e0b9967d229725879fb05ad8e21672d2abfce7782cec4ec8ac8d935681579f5f
fc0cbb373960ab98
	7a401969f11423f89a0d55c13be64d38ed4f95b1dd49a08afd3a216acf92c9d2
0105c242567acc2f
	471622c960be0facc27413941aa49051d52ecc2832699fb03d89e2ac992bc2ce
e2da1770a7549b89
	b26ab1adc59dd30c56977a41f171fbe3c4727bd01dc4f291acf1ef811111b520


$ niceblack.sh $BH $BC

     _|_|      _|_|    _|  _|    
   _|    _|  _|    _|  _|  _|    
     _|_|      _|_|_|  _|_|_|_|  
   _|    _|        _|      _|    
     _|_|    _|_|_|        _|    

      _|    _|_|_|    _|_|_|_|  
    _|  _|        _|  _|        
    _|  _|    _|_|    _|_|_|    
    _|  _|        _|        _|  
      _|    _|_|_|    _|_|_|    

  ,----- .123 4567 89ab cdef -----,
  |                               |
  | ..   .... .... .... ....   .f |
  | 1.   ...1 9321 7e8c d896   1f |
  | 2.   1a7c 2c11 cac6 19.e   2f |
  | 3.   a5c6 ed.. 81fd a41f   3f |
  '===   ==== ==== ==== ====   ==='
   ak:   bdbb 94