mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-04 18:22:57 +02:00
Merge bitcoin/bitcoin#30226: test: add validation for gettxout RPC response
723440c5b8test framework, wallet: rename get_scriptPubKey method to get_output_script (Alfonso Roman Zubeldia)fa0232a3e0test: add validation for gettxout RPC response (Alfonso Roman Zubeldia) Pull request description: Added a new test in `test/functional/rpc_blockchain.py` to validate the gettxout RPC response. This new test ensures all response elements are verified, including `bestblock`, `confirmations`, `value`, `coinbase`, and `scriptPubKey` details. Also renamed the method `get_scriptPubKey` from `test/functional/test_framework/wallet.py` to the modern name `get_output_script` as suggested by maflcko (https://github.com/bitcoin/bitcoin/pull/30226#discussion_r1925491846) ACKs for top commit: fjahr: reACK723440c5b8maflcko: lgtm ACK723440c5b8brunoerg: code review ACK723440c5b8Tree-SHA512: 3384578909d2e7548cef302c5b8a9fed5b82dfc942892503ad4a05e73f5cceafad1eab3af9a27e54aef3db7631f8935298d6b882c70d2f02a9a75b8e3c209b6c
This commit is contained in:
@@ -44,7 +44,7 @@ class FeatureFrameworkMiniWalletTest(BitcoinTestFramework):
|
||||
tag = ''.join(random.choice(string.ascii_letters) for _ in range(20))
|
||||
self.log.debug(f"-> ({i}) tag name: {tag}")
|
||||
tagged_wallet = MiniWallet(node, tag_name=tag)
|
||||
untagged_wallet.send_to(from_node=node, scriptPubKey=tagged_wallet.get_scriptPubKey(), amount=100000)
|
||||
untagged_wallet.send_to(from_node=node, scriptPubKey=tagged_wallet.get_output_script(), amount=100000)
|
||||
tagged_wallet.rescan_utxos()
|
||||
tagged_wallet.send_self_transfer(from_node=node)
|
||||
self.generate(node, 1) # clear mempool
|
||||
|
||||
Reference in New Issue
Block a user