@@ -162,30 +162,6 @@ def create_tx_with_script(prevtx, n, script_sig=b"", *, amount, script_pub_key=C
162
162
tx .calc_sha256 ()
163
163
return tx
164
164
165
- def create_transaction (node , txid , to_address , * , amount ):
166
- """ Return signed transaction spending the first output of the
167
- input txid. Note that the node must have a wallet that can
168
- sign for the output that is being spent.
169
- """
170
- raw_tx = create_raw_transaction (node , txid , to_address , amount = amount )
171
- tx = tx_from_hex (raw_tx )
172
- return tx
173
-
174
- def create_raw_transaction (node , txid , to_address , * , amount ):
175
- """ Return raw signed transaction spending the first output of the
176
- input txid. Note that the node must have a wallet that can sign
177
- for the output that is being spent.
178
- """
179
- psbt = node .createpsbt (inputs = [{"txid" : txid , "vout" : 0 }], outputs = {to_address : amount })
180
- for _ in range (2 ):
181
- for w in node .listwallets ():
182
- wrpc = node .get_wallet_rpc (w )
183
- signed_psbt = wrpc .walletprocesspsbt (psbt )
184
- psbt = signed_psbt ['psbt' ]
185
- final_psbt = node .finalizepsbt (psbt )
186
- assert_equal (final_psbt ["complete" ], True )
187
- return final_psbt ['hex' ]
188
-
189
165
def get_legacy_sigopcount_block (block , accurate = True ):
190
166
count = 0
191
167
for tx in block .vtx :
0 commit comments