Make Payload non-exhaustive
It is unlikely that we will see another segwit type fork. But we never know, best to mark Payload as [non-exhaustive]
This commit is contained in:
parent
6ebc9de252
commit
a446df583c
|
@ -386,6 +386,7 @@ impl From<WitnessVersion> for opcodes::All {
|
||||||
|
|
||||||
/// The method used to produce an address.
|
/// The method used to produce an address.
|
||||||
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||||
|
#[non_exhaustive]
|
||||||
pub enum Payload {
|
pub enum Payload {
|
||||||
/// P2PKH address.
|
/// P2PKH address.
|
||||||
PubkeyHash(PubkeyHash),
|
PubkeyHash(PubkeyHash),
|
||||||
|
|
Loading…
Reference in New Issue