MCPcopy Create free account
hub / github.com/base/base / new

Method new

crates/proof/host/src/handler.rs:87–96  ·  view source on GitHub ↗
(cfg: Arc<HostConfig>, providers: Arc<HostProviders>)

Source from the content-addressed store, hash-verified

85
86impl PayloadWitnessPrefetcher {
87 pub(crate) fn new(cfg: Arc<HostConfig>, providers: Arc<HostProviders>) -> Self {
88 Self {
89 inner: Arc::new(PayloadWitnessPrefetchInner {
90 cfg,
91 providers,
92 state: Mutex::new(PayloadWitnessPrefetchState::default()),
93 semaphore: Semaphore::new(PAYLOAD_WITNESS_PREFETCH_MAX_IN_FLIGHT),
94 }),
95 }
96 }
97
98 #[cfg(test)]
99 fn take_ready(&self, parent_block_hash: B256, payload_attributes_digest: B256) -> bool {

Callers

nothing calls this directly

Calls 1

newFunction · 0.50

Tested by

no test coverage detected