mirror of
https://github.com/LORDBABUINO/stealth.git
synced 2026-06-13 23:53:35 -07:00
move fast break things
This commit is contained in:
@@ -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"))
|
||||
Reference in New Issue
Block a user