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:
parent
3980d6e6e4
commit
beea3c1e5d
|
@ -29,11 +29,6 @@ use crate::sighash::{EcdsaSighashType, TapSighashType};
|
|||
use crate::witness::Witness;
|
||||
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! {
|
||||
/// A bitcoin transaction hash/transaction ID.
|
||||
///
|
||||
|
@ -1846,6 +1841,7 @@ mod tests {
|
|||
fn transaction_verify() {
|
||||
use std::collections::HashMap;
|
||||
|
||||
use crate::consensus::validation::TxVerifyError;
|
||||
use crate::witness::Witness;
|
||||
|
||||
// a random recent segwit transaction from blockchain using both old and segwit inputs
|
||||
|
|
Loading…
Reference in New Issue