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

Method send

crates/execution/flashblocks-node/src/test_harness.rs:77–82  ·  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

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

Callers 15

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

Calls 1

channelFunction · 0.50

Tested by

no test coverage detected