From 76c4c647cf88d5a0fe425b42686f24605558b85d Mon Sep 17 00:00:00 2001 From: Martin Habovstiak Date: Sat, 25 Feb 2023 19:10:36 +0100 Subject: [PATCH] Reexport `Magic` Writing `network::Magic` is more natural and less annoying than `network::constants::Magic`, so this change reexports it. Closes #1667 --- bitcoin/src/network/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bitcoin/src/network/mod.rs b/bitcoin/src/network/mod.rs index 0450156f..a12b9995 100644 --- a/bitcoin/src/network/mod.rs +++ b/bitcoin/src/network/mod.rs @@ -33,3 +33,5 @@ pub mod message_filter; #[cfg(feature = "std")] #[cfg_attr(docsrs, doc(cfg(feature = "std")))] pub mod message_network; + +pub use self::constants::Magic;