Skip to content

Commit 92ddde6

Browse files
authored
Merge pull request #116 from alexanderwiederin/script-verify-status
Refactor(core): Make ScriptVerifyStatus private
2 parents 3e41d2c + f4f19f5 commit 92ddde6

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/core/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub use block::{BlockHashExt, BlockSpentOutputsExt, CoinExt, TransactionSpentOut
1919
pub use script::ScriptPubkeyExt;
2020
pub use transaction::{TransactionExt, TxInExt, TxOutExt, TxOutPointExt, TxidExt};
2121

22-
pub use verify::{verify, ScriptVerifyError, ScriptVerifyStatus};
22+
pub use verify::{verify, ScriptVerifyError};
2323

2424
pub mod verify_flags {
2525
pub use super::verify::{

src/core/verify.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ pub fn verify(
139139
/// configuration errors that prevented verification from proceeding.
140140
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
141141
#[repr(u8)]
142-
pub enum ScriptVerifyStatus {
142+
enum ScriptVerifyStatus {
143143
/// Script verification completed successfully
144144
Ok = BTCK_SCRIPT_VERIFY_STATUS_OK,
145145
/// Invalid combination of verification flags was provided

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ impl std::error::Error for KernelError {
112112

113113
pub use crate::core::{
114114
verify, Block, BlockHash, BlockSpentOutputs, BlockSpentOutputsRef, BlockTreeEntry, Coin,
115-
CoinRef, ScriptPubkey, ScriptPubkeyRef, ScriptVerifyError, ScriptVerifyStatus, Transaction,
116-
TransactionRef, TransactionSpentOutputs, TransactionSpentOutputsRef, TxIn, TxInRef, TxOut,
117-
TxOutPoint, TxOutPointRef, TxOutRef, Txid, TxidRef,
115+
CoinRef, ScriptPubkey, ScriptPubkeyRef, ScriptVerifyError, Transaction, TransactionRef,
116+
TransactionSpentOutputs, TransactionSpentOutputsRef, TxIn, TxInRef, TxOut, TxOutPoint,
117+
TxOutPointRef, TxOutRef, Txid, TxidRef,
118118
};
119119

120120
pub use crate::log::{disable_logging, Log, LogCategory, LogLevel, Logger};

0 commit comments

Comments
 (0)