57- output = {addr: amount}
58- self.blk_idx += 1
59- rawtx = self.nodes[0].createrawtransaction([input], output)
60- txid = self.nodes[0].sendrawtransaction(self.nodes[0].signrawtransactionwithkey(rawtx, [self.nodes[0].get_deterministic_priv_key().key])["hex"], 0)
61+ script_pub_key = address_to_scriptpubkey(addr).hex()
62+ wallet = MiniWallet(self.node[0], mode=MiniWalletMode.ADDRESS_OP_TRUE)
The point of this test is to check that signrawtransactionwithkey
works. Replacing the call to signrawtransactionwithkey
with a different signing function seems wrong.
I see your point, the issue was readability in this particular test, according to the issuer. Should I leave this alone and write a separate test? signrawtransactionwithkey
is tested in other parts of this functional test.
Ah apologies, I was too hasty and didn’t notice that this is for the funding transactions. You can ignore that.