do not need pybitcoin

This commit is contained in:
Jude Nelson
2017-09-22 17:25:43 -04:00
parent 5d3e941626
commit 5834fa27d8

View File

@@ -35,8 +35,6 @@ blockstackd = None
testlib = None
g_interactive = False
import pybitcoin
import virtualchain
log = virtualchain.get_logger("blockstack-test-scenario")
@@ -643,7 +641,7 @@ def run_scenario( scenario, config_file, client_config_file, interactive=False,
bitcoind = bitcoin_regtest_connect( bitcoin_regtest_opts() )
utxo_provider = pybitcoin.BitcoindClient("blockstack", "blockstacksystem", port=18332, version_byte=virtualchain.version_byte )
utxo_provider = blockstack_client.backend.utxo.bitcoind_utxo.BitcoindClient("blockstack", "blockstacksystem", port=18332, version_byte=virtualchain.version_byte )
working_dir = virtualchain.get_working_dir()
print "working_dir: %s" % working_dir
@@ -1090,7 +1088,7 @@ def bitcoin_regtest_connect( opts, reset=False ):
class BitcoinRegtestUTXOProvider(object):
"""
Bitcoin regtest UTXO provider, compatible with pybitcoin.
Bitcoin regtest UTXO provider
All addresses must be created within the bitcoind wallet.
"""
@@ -1101,7 +1099,6 @@ class BitcoinRegtestUTXOProvider(object):
def get_unspents( self, address, blockchain_client=None ):
"""
Get unspent outputs for an address.
Meant to be compatible with pybitcoin.
(blockchain_client is a BitcoindConnection)
"""
if blockchain_client is None:
@@ -1128,7 +1125,6 @@ class BitcoinRegtestUTXOProvider(object):
def broadcast_transaction( self, hex_tx, blockchain_client=None ):
"""
Send a raw transaction to bitcoin regtest.
Meant to be compatible with pybitcoin.
(blockchain_client is a BitcoindConnection)
"""
if blockchain_client is None: