Remove public error re-export

We do not have a policy to re-export things from other modules just
because they are in the public API - I don't see any other reason to
re-export this error, users should go to the `validation` module
directly to get the error type.
This commit is contained in:
Tobin C. Harding 2024-07-17 06:50:42 +10:00
parent 3980d6e6e4
commit beea3c1e5d
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 1 additions and 5 deletions

View File

@ -29,11 +29,6 @@ use crate::sighash::{EcdsaSighashType, TapSighashType};
use crate::witness::Witness; use crate::witness::Witness;
use crate::{Amount, FeeRate, SignedAmount, VarInt}; use crate::{Amount, FeeRate, SignedAmount, VarInt};
#[rustfmt::skip] // Keep public re-exports separate.
#[cfg(feature = "bitcoinconsensus")]
#[doc(inline)]
pub use crate::consensus::validation::TxVerifyError;
hashes::hash_newtype! { hashes::hash_newtype! {
/// A bitcoin transaction hash/transaction ID. /// A bitcoin transaction hash/transaction ID.
/// ///
@ -1846,6 +1841,7 @@ mod tests {
fn transaction_verify() { fn transaction_verify() {
use std::collections::HashMap; use std::collections::HashMap;
use crate::consensus::validation::TxVerifyError;
use crate::witness::Witness; use crate::witness::Witness;
// a random recent segwit transaction from blockchain using both old and segwit inputs // a random recent segwit transaction from blockchain using both old and segwit inputs