MCPcopy Create free account
hub / github.com/cakevm/kabu / write_cached

Method write_cached

crates/node/debug-provider/src/httpcached.rs:96–101  ·  view source on GitHub ↗
(&self, method: String, params_hash: B256, data: String)

Source from the content-addressed store, hash-verified

94 }
95
96 pub async fn write_cached(&self, method: String, params_hash: B256, data: String) -> Result<()> {
97 match &self.cache_folder {
98 Some(cf) => cf.write(method, params_hash, data).await,
99 None => Err(eyre!("NO_CACHE")),
100 }
101 }
102
103 pub fn next_block_number(&self) -> BlockNumber {
104 self.block_number.fetch_add(1, Ordering::Relaxed)

Callers 1

cached_or_executeMethod · 0.80

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected