Skip to content

Instantly share code, notes, and snippets.

@willcl-ark
willcl-ark / xor-blocks.py
Last active August 3, 2023 15:22
xor a Bitcoin Core blocks directory
#!/usr/bin/env python3
import argparse
import logging
import os
import random
import traceback
from functools import partial
from multiprocessing import Pool, cpu_count
will@ubuntu in ~/src/bitcoin (505e3de) [$?] : C v16.0.6-clang : 🐍 3.8.16
₿ /home/will/src/bitcoin/src/bitcoin-cli getmempoolinfo
{
"loaded": true,
"size": 138992,
"bytes": 48314670,
"usage": 295850976,
"total_fee": 2.22768977,
"maxmempool": 300000000,
"mempoolminfee": 0.00001000,