Skip to content

Instantly share code, notes, and snippets.

@noleto
Last active March 6, 2025 14:43
Show Gist options
  • Save noleto/00c061ab7b4c4da6c9aa9864736c5334 to your computer and use it in GitHub Desktop.
Save noleto/00c061ab7b4c4da6c9aa9864736c5334 to your computer and use it in GitHub Desktop.
py-bitcoinkernel install and check
#!/bin/bash
COMMIT_HASH=${1:-"v0.1.0a2"}
# Install dependencies
apt-get update
apt-get install -y libboost-dev
# Install py-bitcoinkernel from a specific commit
pip install git+https://github.com/stickies-v/py-bitcoinkernel@${COMMIT_HASH}
# Check py-bitcoinkernel
python -c 'from pathlib import Path
import pbk
if __name__ == "__main__":
log = pbk.LoggingConnection()
datadir = Path("/bitcoin-datadir")
chainman = pbk.load_chainman(datadir, pbk.ChainType.MAINNET)
print("ChainstateManager loaded")'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment