This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# based on https://gist.github.com/mutatrum/264cfa84af5fc3dc0b107bcb3ba10893 | |
BLOCKCHAININFO=`bitcoin-cli getblockchaininfo` | |
TAPROOT=`echo $BLOCKCHAININFO | jq .softforks.taproot.bip9` | |
SINCE=`echo $TAPROOT | jq .since` | |
ELAPSED=`echo $TAPROOT | jq .statistics.elapsed` | |
for BLOCK in $(seq $SINCE $((SINCE + ELAPSED - 1))); do | |
HASH=`bitcoin-cli getblockhash $BLOCK` | |
HEADER=`bitcoin-cli getblockheader $HASH` | |
VERSION=`echo $HEADER | jq .version` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env -S pipenv run python3 | |
# -*- coding: utf-8 -*- | |
# | |
# (c) Copyright 2023 by Narcelio Filho <narcelio@gmail.com> | |
import aiorpcx | |
import asyncio | |
import sys | |
import traceback |
OlderNewer