Merge rust-bitcoin/rust-bitcoin#1216: consensus::Params should be non_exhaustive

445037fb70 consensus::Params should be non_exhaustive (hrouis)

Pull request description:

  fixes: https://github.com/rust-bitcoin/rust-bitcoin/issues/1213

ACKs for top commit:
  apoelstra:
    ACK 445037fb70
  tcharding:
    ACK 445037fb70
  Kixunil:
    ACK 445037fb70

Tree-SHA512: a68fef69c58790caff7fc76ec780e04cd044d8f0037ecb0b93bcc3c71f9a64b9cfbc66cee51944583a311b122c1a7a25f7f434a45232ba9928b53011180fa1bc
This commit is contained in:
Andrew Poelstra 2022-08-29 17:40:15 +00:00
commit 5548696521
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
1 changed files with 1 additions and 0 deletions

View File

@ -40,6 +40,7 @@ const MAX_BITS_REGTEST: Uint256 = Uint256([
]); ]);
/// Parameters that influence chain consensus. /// Parameters that influence chain consensus.
#[non_exhaustive]
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub struct Params { pub struct Params {
/// Network for which parameters are valid. /// Network for which parameters are valid.