| 2256 | |
| 2257 | |
| 2258 | def test_newaddr(node_factory, chainparams): |
| 2259 | l1 = node_factory.get_node() |
| 2260 | bech32 = l1.rpc.newaddr('bech32') |
| 2261 | assert 'p2sh-segwit' not in bech32 |
| 2262 | assert bech32['bech32'].startswith(chainparams['bip173_prefix']) |
| 2263 | both = l1.rpc.newaddr('all') |
| 2264 | assert 'p2sh-segwit' not in both |
| 2265 | assert both['bech32'].startswith(chainparams['bip173_prefix']) |
| 2266 | assert both['p2tr'].startswith(chainparams['bip173_prefix']) |
| 2267 | |
| 2268 | |
| 2269 | def test_bitcoind_fail_first(node_factory, bitcoind): |