Last active
March 6, 2025 14:43
-
-
Save noleto/00c061ab7b4c4da6c9aa9864736c5334 to your computer and use it in GitHub Desktop.
py-bitcoinkernel install and check
This file contains hidden or 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 | |
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