diff --git a/testchain/address.py b/testchain/address.py index aa771cc..03458c3 100644 --- a/testchain/address.py +++ b/testchain/address.py @@ -37,7 +37,7 @@ def __init__(self, key: CBitcoinSecret, address_type: str = "p2pkh"): self.address = P2WSHBitcoinAddress.from_scriptPubKey(script_pub_key) else: raise UnsupportedAddressTypeError() - self.value = 0 + self.value = 0.0 self.txid = None self.vout = None diff --git a/testchain/runner.py b/testchain/runner.py index 2c22a41..9fa6a5a 100644 --- a/testchain/runner.py +++ b/testchain/runner.py @@ -34,6 +34,7 @@ def __init__(self, output_dir, chain, executable): self._setup_chain_params() self._setup_bitcoind() self.proxy = bitcointx.rpc.Proxy(btc_conf_file=self.conf_file) + self.proxy.call("createwallet", os.path.join(self.tempdir.name, "testwallet")) self.proxy.call("importprivkey", COINBASE_KEY) def _setup_logger(self):