mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-21 01:46:59 +08:00
do not need pybitcoin
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user