Merge rust-bitcoin/rust-bitcoin#1900: network: Implement Default on ServiceFlags
4c18ba779c
network: Implement Default on ServiceFlags (Steven Roose) Pull request description: I think the NONE/empty service flags are a reasonable default value, no? ACKs for top commit: apoelstra: ACK4c18ba779c
tcharding: ACK4c18ba779c
Tree-SHA512: 14433f695edcbc19eb58f03b6b1b9dfe0cf0825df5521a7d15667733bf0a4b07a921ba9bc780acbf16cbee232177ecd4638a474a1ab046c9371ce4df16292569
This commit is contained in:
commit
be252f131c
|
@ -441,7 +441,7 @@ impl fmt::Display for UnknownMagic {
|
||||||
impl_std_error!(UnknownMagic);
|
impl_std_error!(UnknownMagic);
|
||||||
|
|
||||||
/// Flags to indicate which network services a node supports.
|
/// Flags to indicate which network services a node supports.
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||||
pub struct ServiceFlags(u64);
|
pub struct ServiceFlags(u64);
|
||||||
|
|
||||||
impl ServiceFlags {
|
impl ServiceFlags {
|
||||||
|
|
Loading…
Reference in New Issue