Merge rust-bitcoin/rust-bitcoin#3891: typo: `Address::is_valid_for_network`
1e0c065740
typo: Address::is_valid_for_network (Jose Storopoli) Pull request description: I believe this is a typo. ACKs for top commit: apoelstra: ACK 1e0c065740266a8ad207a95f4d964394ba3f07d7; successfully ran local tests tcharding: ACK1e0c065740
Tree-SHA512: aff71b91dc707c0c6c723e35510d284fd9a60895b7f12828819eb0d4520216491a2cf054b59872ac4be175d566674a32bde8c170f43beb6fc15dd19e6be12e45
This commit is contained in:
commit
93cd9a4f74
|
@ -768,7 +768,7 @@ impl Address<NetworkUnchecked> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Parsed addresses do not always have *one* network. The problem is that legacy testnet,
|
/// Parsed addresses do not always have *one* network. The problem is that legacy testnet,
|
||||||
/// regtest and signet addresse use the same prefix instead of multiple different ones. When
|
/// regtest and signet addresses use the same prefix instead of multiple different ones. When
|
||||||
/// parsing, such addresses are always assumed to be testnet addresses (the same is true for
|
/// parsing, such addresses are always assumed to be testnet addresses (the same is true for
|
||||||
/// bech32 signet addresses). So if one wants to check if an address belongs to a certain
|
/// bech32 signet addresses). So if one wants to check if an address belongs to a certain
|
||||||
/// network a simple comparison is not enough anymore. Instead this function can be used.
|
/// network a simple comparison is not enough anymore. Instead this function can be used.
|
||||||
|
|
Loading…
Reference in New Issue