Skip to main content

TxVerificationCacheLookup

Trait TxVerificationCacheLookup 

Source
pub trait TxVerificationCacheLookup {
    // Required method
    fn get_by_wtx_hash(
        &self,
        key: &VerifyCacheKey,
    ) -> Option<&CachedScriptCycles>;
}
Expand description

Lookup entries in a transaction verification cache by witness transaction hash.

Required Methods§

Source

fn get_by_wtx_hash(&self, key: &VerifyCacheKey) -> Option<&CachedScriptCycles>

Returns the cached verification result for key.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§