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

Method send

crates/execution/flashblocks-node/src/test_harness.rs:75–80  ·  view source on GitHub ↗

Send a flashblock to the background processor and wait until it is handled.

(&self, flashblock: Flashblock)

Source from the content-addressed store, hash-verified

73
74 /// Send a flashblock to the background processor and wait until it is handled.
75 pub async fn send(&self, flashblock: Flashblock) -> Result<()> {
76 let (tx, rx) = oneshot::channel();
77 self.sender.send((flashblock, tx)).await.map_err(|err| eyre::eyre!(err))?;
78 rx.await.map_err(|err| eyre::eyre!(err))?;
79 Ok(())
80 }
81}
82
83/// Test extension for flashblocks functionality.

Callers 15

test_can_receive_fbFunction · 0.45
apply_flashblockMethod · 0.45
handle_notificationMethod · 0.45
applyMethod · 0.45
send_flashblockMethod · 0.45
test_eth_unsubscribeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected