mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-18 03:20:24 +01:00
This commit adds support for mainnet addresses (P2PKH and P2SH) in the address_to_scriptpubkey function in the test framework. Previously, the function only supported testnet addresses and segwit addresses. The changes include: - Adding support for mainnet P2PKH addresses (version 0) - Adding support for mainnet P2SH addresses (version 5) - Adding tests to verify the new functionality - Removing the TODO comment as the requested functionality has been implemented This enhancement improves the test framework's ability to handle different address formats, making it more versatile for testing scenarios that involve mainnet addresses.