Use slickrpc instead of the authproxy from rpc-tests

Removes the cross-repo dependency.

The README change doesn’t indicate a new dependency, the existing code was
already depending on slick-bitcoinrpc.
This commit is contained in:
Greg Pfeil 2022-10-04 14:06:20 -06:00
parent e2260b7118
commit 0a53fd9237
2 changed files with 6 additions and 9 deletions

View File

@ -1,2 +1,6 @@
# zcash-graphs
A collection of scripts for collecting and graphing data about the Zcash chain
## dependencies
- `slick-bitcoinrpc` (which depends on `libssl-dev` and `libcurl4-openssl-dev`)

View File

@ -16,17 +16,10 @@ import math
import numpy as np
import os.path
from progress.bar import IncrementalBar
from slickrpc.rpc import Proxy
from statistics import mean
import sys
sys.path.insert(
1,
os.path.join(os.path.dirname(os.path.abspath(__file__)),
"../../qa/rpc-tests")
)
from test_framework.authproxy import AuthServiceProxy
### TODO: Get host/port from config
if len(sys.argv) > 1:
connection_string = sys.argv[1]
@ -146,7 +139,7 @@ class Analysis:
class Analyzer:
def __init__(self, node_url):
self.node = AuthServiceProxy(node_url)
self.node = Proxy(node_url)
def analyze_blocks(self, block_range, analyses):
"""