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:
parent
e2260b7118
commit
0a53fd9237
|
@ -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`)
|
||||
|
|
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue