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

Method run

crates/node/json-rpc/src/mempool_processing_component.rs:36–57  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

34 }
35
36 async fn run(self) -> Result<()> {
37 info!("Starting mempool processing component: {}", self.name);
38
39 // Simplified mempool processing
40 // In a real implementation, this would subscribe to pending transactions
41 // and convert them to the appropriate message format
42
43 if self.mempool_tx.is_some() {
44 info!("Mempool processing component {} is running (simplified)", self.name);
45
46 // Keep the component alive but don't actually process transactions
47 // to avoid API compatibility issues
48 loop {
49 tokio::time::sleep(tokio::time::Duration::from_secs(30)).await;
50 info!("Mempool processing component {} heartbeat", self.name);
51 }
52 } else {
53 info!("No mempool channel configured for {}", self.name);
54 }
55
56 Ok(())
57 }
58}
59
60impl<P> Component for MempoolProcessingComponent<P>

Callers 1

spawnMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected