Changeset View
Changeset View
Standalone View
Standalone View
test/functional/rpc_psbt.py
Show All 18 Lines | |||||
# Create one-input, one-output, no-fee transaction: | # Create one-input, one-output, no-fee transaction: | ||||
class PSBTTest(BitcoinTestFramework): | class PSBTTest(BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
self.setup_clean_chain = False | self.setup_clean_chain = False | ||||
self.num_nodes = 3 | self.num_nodes = 3 | ||||
# TODO: remove -txindex. Currently required for getrawtransaction call. | |||||
self.extra_args = [["-txindex"], ["-txindex"], ["-txindex"]] | |||||
def skip_test_if_missing_module(self): | def skip_test_if_missing_module(self): | ||||
self.skip_if_no_wallet() | self.skip_if_no_wallet() | ||||
def run_test(self): | def run_test(self): | ||||
# Create and fund a raw tx for sending 10 BTC | # Create and fund a raw tx for sending 10 BTC | ||||
psbtx1 = self.nodes[0].walletcreatefundedpsbt( | psbtx1 = self.nodes[0].walletcreatefundedpsbt( | ||||
[], {self.nodes[2].getnewaddress(): 10})['psbt'] | [], {self.nodes[2].getnewaddress(): 10})['psbt'] | ||||
▲ Show 20 Lines • Show All 277 Lines • Show Last 20 Lines |