Struct bitcoin_txmempool::MempoolAcceptResult
source · pub struct MempoolAcceptResult {
pub result_type: MempoolAcceptResultType,
pub state: TxValidationState,
pub replaced_transactions: Option<LinkedList<TransactionRef>>,
pub base_fees: Option<Amount>,
}Expand description
| Validation result for a single transaction | mempool acceptance. |
Fields§
§result_type: MempoolAcceptResultType§state: TxValidationState§replaced_transactions: Option<LinkedList<TransactionRef>>| Mempool transactions replaced by the | tx per BIP 125 rules. |
base_fees: Option<Amount>| Raw base fees in satoshis. |
Implementations§
source§impl MempoolAcceptResult
impl MempoolAcceptResult
pub fn failure(state: TxValidationState) -> MempoolAcceptResult
pub fn success( replaced_txns: LinkedList<TransactionRef>, fees: Amount ) -> MempoolAcceptResult
sourcepub fn new_failure_case(state: TxValidationState) -> Self
pub fn new_failure_case(state: TxValidationState) -> Self
| Constructor for failure case |
sourcepub fn new_success_case(
replaced_txns: LinkedList<TransactionRef>,
fees: Amount
) -> Self
pub fn new_success_case( replaced_txns: LinkedList<TransactionRef>, fees: Amount ) -> Self
| Constructor for success case |
Auto Trait Implementations§
impl !RefUnwindSafe for MempoolAcceptResult
impl Send for MempoolAcceptResult
impl Sync for MempoolAcceptResult
impl Unpin for MempoolAcceptResult
impl !UnwindSafe for MempoolAcceptResult
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more