18 print(
"Initializing test directory "+self.options.tmpdir)
54 inputs = [ {
'txid' :
"1d1d4e24ed99057e84c3f80fd8fbec79ed9e1acee37da269356ecea000000000",
'vout' : 1}]
61 except JSONRPCException
as e:
62 assert(
"Missing inputs" in e.error[
'message'])
107 sPK = rawTx[
'vout'][0][
'scriptPubKey'][
'hex']
119 for outpoint
in rawTx[
'vout']:
120 if outpoint[
'value'] == Decimal(
'2.20000000'):
125 inputs = [{
"txid" : txId,
"vout" : vout[
'n'],
"scriptPubKey" : vout[
'scriptPubKey'][
'hex']}]
140 if __name__ ==
'__main__':
UniValue addmultisigaddress(const UniValue ¶ms, bool fHelp)
UniValue validateaddress(const UniValue ¶ms, bool fHelp)
UniValue getbalance(const UniValue ¶ms, bool fHelp)
def start_nodes(num_nodes, dirname, extra_args=None, rpchost=None, binary=None)
UniValue sendtoaddress(const UniValue ¶ms, bool fHelp)
UniValue getnewaddress(const UniValue ¶ms, bool fHelp)
def initialize_chain_clean(test_dir, num_nodes)
UniValue signrawtransaction(const UniValue ¶ms, bool fHelp)
UniValue createrawtransaction(const UniValue ¶ms, bool fHelp)
UniValue decoderawtransaction(const UniValue ¶ms, bool fHelp)
def setup_network(self, split=False)
UniValue generate(const UniValue ¶ms, bool fHelp)
UniValue sendrawtransaction(const UniValue ¶ms, bool fHelp)
def assert_equal(thing1, thing2)
def connect_nodes_bi(nodes, a, b)
UniValue gettransaction(const UniValue ¶ms, bool fHelp)