move fast break things

This commit is contained in:
Renato Britto
2026-02-27 13:22:19 -03:00
parent b8e4f03695
commit 6188665f46
10 changed files with 1228 additions and 141 deletions
+25
View File
@@ -0,0 +1,25 @@
"""
bitcoin_rpc.py — Thin wrapper around bitcoin-cli for Python tests.
Uses subprocess calls to bitcoin-cli -regtest.
"""
import json
import subprocess
import time
import os
import requests
CLI = "bitcoin-cli"
SIGNET_ARGS = [CLI]
from lib.bitcoin_rpc_testnet import cli
# from lib.bitcoin_rpc_testnet import cli
block_count = cli("getblockcount")
print("testnet:", block_count)
blockhash = cli(f"getblockhash {block_count}")
block = cli(f"getblock {blockhash}")
print("testnet:", block)
# print("mainnet:", cli_mainnet("getblockcount"))
# print("regtest:", cli_regtest("getblockcount"))