Merge rust-bitcoin/rust-bitcoin#2772: Removed //! spare line at end of headers

802af8e417 Removed //! spare line at end of headers (jamil.lambert)

Pull request description:

  Some of the headers had a //! at the end but most didn't.  They have all been removed in bitcoin/src/ to make the files consistent

ACKs for top commit:
  apoelstra:
    ACK 802af8e417

Tree-SHA512: a1eb0dda76af68cb96352f6b31231fa5391d49e11df924065e76871f82231ec0d5751190663f142240e5d757975937387243d1fdac3684d9bdbd7e2362dbd0a7
This commit is contained in:
Andrew Poelstra 2024-05-16 13:38:59 +00:00
commit 2fe579bd3f
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
33 changed files with 0 additions and 33 deletions

View File

@ -3,7 +3,6 @@
//! BIP152 Compact Blocks
//!
//! Implementation of compact blocks data structure and algorithms.
//!
use core::{convert, fmt, mem};
#[cfg(feature = "std")]

View File

@ -36,7 +36,6 @@
//! // get this block
//! }
//! ```
//!
use core::cmp::{self, Ordering};
use core::fmt::{self, Display, Formatter};

View File

@ -4,7 +4,6 @@
//!
//! Implementation of BIP32 hierarchical deterministic wallets, as defined
//! at <https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki>.
//!
use core::ops::Index;
use core::str::FromStr;

View File

@ -6,7 +6,6 @@
//! which commits to an earlier block to form the blockchain. This
//! module describes structures and functions needed to describe
//! these blocks and the blockchain.
//!
use core::fmt;

View File

@ -5,7 +5,6 @@
//! This module provides various constants relating to the blockchain and
//! consensus code. In particular, it defines the genesis block and its
//! single transaction.
//!
use hashes::{sha256d, Hash};
use hex_lit::hex;

View File

@ -4,7 +4,6 @@
//!
//! There are two types of lock time: lock-by-blockheight and lock-by-blocktime, distinguished by
//! whether `LockTime < LOCKTIME_THRESHOLD`.
//!
use core::cmp::Ordering;
use core::fmt;

View File

@ -1,7 +1,6 @@
// SPDX-License-Identifier: CC0-1.0
//! Provides absolute and relative locktimes.
//!
pub mod absolute;
pub mod relative;

View File

@ -4,7 +4,6 @@
//!
//! There are two types of lock time: lock-by-blockheight and lock-by-blocktime, distinguished by
//! whether bit 22 of the `u32` consensus value is set.
//!
#[cfg(feature = "ordered")]
use core::cmp::Ordering;

View File

@ -4,7 +4,6 @@
//!
//! This module defines structures and functions for storing the blocks and
//! transactions which make up the Bitcoin system.
//!
pub mod block;
pub mod constants;

View File

@ -4,7 +4,6 @@
//!
//! Bitcoin's script uses a stack-based assembly language. This module defines
//! all of the opcodes for that language.
//!
#![allow(non_camel_case_types)]

View File

@ -9,7 +9,6 @@
//! signatures ensures that coins cannot be spent by unauthorized parties.
//!
//! This module provides the structures and functions needed to support transactions.
//!
use core::{cmp, fmt, str};

View File

@ -3,7 +3,6 @@
//! Witness
//!
//! This module contains the [`Witness`] struct and related methods to operate on it
//!
use core::fmt;
use core::ops::Index;

View File

@ -13,7 +13,6 @@
//! course, but has some critical differences from the network format e.g.,
//! scripts come with an opcode decode, hashes are big-endian, numbers are
//! typically big-endian decimals, etc.)
//!
use core::{fmt, mem};

View File

@ -4,7 +4,6 @@
//!
//! This module defines structures, functions, and traits that are needed to
//! conform to Bitcoin consensus.
//!
pub mod encode;
pub mod params;

View File

@ -3,7 +3,6 @@
//! Cryptography
//!
//! Cryptography related functionality: keys and signatures.
//!
pub mod ecdsa;
pub mod key;

View File

@ -3,7 +3,6 @@
//! Bitcoin taproot keys.
//!
//! This module provides taproot keys used in Bitcoin (including reexporting secp256k1 keys).
//!
use core::fmt;

View File

@ -3,7 +3,6 @@
//! Internal macros.
//!
//! Macros meant to be used inside the Rust Bitcoin library.
//!
macro_rules! impl_consensus_encoding {
($thing:ident, $($field:ident),+) => (

View File

@ -4,7 +4,6 @@
//!
//! This module defines the structures and functions needed to encode
//! network addresses in Bitcoin messages.
//!
use core::{fmt, iter};
use std::net::{Ipv4Addr, Ipv6Addr, SocketAddr, SocketAddrV4, SocketAddrV6, ToSocketAddrs};

View File

@ -4,7 +4,6 @@
//!
//! This module defines the `NetworkMessage` and `RawNetworkMessage` types that
//! are used for (de)serializing Bitcoin objects for transmission on the network.
//!
use core::{fmt, iter};

View File

@ -4,7 +4,6 @@
//!
//! This module describes network messages which are used for passing
//! Bitcoin data (blocks and transactions) around.
//!
use hashes::{sha256d, Hash as _};
use io::{BufRead, Write};

View File

@ -3,7 +3,6 @@
//! Bitcoin Connection Bloom filtering network messages.
//!
//! This module describes BIP37 Connection Bloom filtering network messages.
//!
use io::{BufRead, Write};

View File

@ -2,7 +2,6 @@
//!
//! BIP152 Compact Blocks network messages
//!
use crate::bip152;
use crate::internal_macros::impl_consensus_encoding;

View File

@ -3,7 +3,6 @@
//! Bitcoin Client Side Block Filtering network messages.
//!
//! This module describes BIP157 Client Side Block Filtering network messages.
//!
use crate::bip158::{FilterHash, FilterHeader};
use crate::blockdata::block::BlockHash;

View File

@ -4,7 +4,6 @@
//!
//! This module defines network messages which describe peers and their
//! capabilities.
//!
use hashes::sha256d;
use io::{BufRead, Write};

View File

@ -10,7 +10,6 @@
//! Bitcoin. As such they must not be relied upon as if they were consensus rules.
//!
//! These values were taken from bitcoind v0.21.1 (194b9b8792d9b0798fdb570b79fa51f1d1f5ebaf).
//!
use core::cmp;

View File

@ -4,7 +4,6 @@
//!
//! Provides the [`Work`] and [`Target`] types that are used in proof-of-work calculations. The
//! functions here are designed to be fast, by that we mean it is safe to use them to check headers.
//!
use core::cmp;
use core::fmt::{self, LowerHex, UpperHex};

View File

@ -5,7 +5,6 @@
//! Implementation of BIP174 Partially Signed Bitcoin Transaction Format as
//! defined at <https://github.com/bitcoin/bips/blob/master/bip-0174.mediawiki>
//! except we define PSBTs containing non-standard sighash types as invalid.
//!
#[macro_use]
mod macros;

View File

@ -4,7 +4,6 @@
//!
//! Raw PSBT key-value pairs as defined at
//! <https://github.com/bitcoin/bips/blob/master/bip-0174.mediawiki>.
//!
use core::fmt;

View File

@ -4,7 +4,6 @@
//!
//! Traits to serialize PSBT values to and from raw bytes
//! according to the BIP-174 specification.
//!
use hashes::{hash160, ripemd160, sha256, sha256d, Hash};
use secp256k1::XOnlyPublicKey;

View File

@ -3,7 +3,6 @@
//! Bitcoin serde utilities.
//!
//! This module is for special serde serializations.
//!
pub(crate) struct SerializeBytesAsHex<'a>(pub(crate) &'a [u8]);

View File

@ -4,7 +4,6 @@
//!
//! This module provides signature related functions including secp256k1 signature recovery when
//! library is used with the `secp-recovery` feature.
//!
use hashes::{sha256d, Hash, HashEngine};

View File

@ -3,7 +3,6 @@
//! Bitcoin Taproot.
//!
//! This module provides support for taproot tagged hashes.
//!
pub mod merkle_branch;
pub mod serialized_signature;

View File

@ -3,7 +3,6 @@
//! Bitcoin serde macros.
//!
//! This module provides internal macros used for unit tests.
//!
#[cfg(feature = "serde")]
macro_rules! serde_round_trip (