Struct ckb_script::IllTransactionChecker
source · [−]pub struct IllTransactionChecker<'a> { /* private fields */ }
Expand description
Ill formed transactions checker.
Implementations
sourceimpl<'a> IllTransactionChecker<'a>
impl<'a> IllTransactionChecker<'a>
sourcepub fn new(
tx: &'a TransactionView,
consensus: &'a Consensus,
tx_env: &'a TxVerifyEnv
) -> Self
pub fn new(
tx: &'a TransactionView,
consensus: &'a Consensus,
tx_env: &'a TxVerifyEnv
) -> Self
Creates the checker for a transaction.
sourcepub fn check(&self) -> Result<(), ScriptError>
pub fn check(&self) -> Result<(), ScriptError>
Checks whether the transaction is ill formed.
Auto Trait Implementations
impl<'a> RefUnwindSafe for IllTransactionChecker<'a>
impl<'a> Send for IllTransactionChecker<'a>
impl<'a> Sync for IllTransactionChecker<'a>
impl<'a> Unpin for IllTransactionChecker<'a>
impl<'a> UnwindSafe for IllTransactionChecker<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more