MCPcopy Index your code
hub / github.com/Commit-Boost/commit-boost-client / do_get_header

Method do_get_header

tests/src/mock_validator.rs:23–30  ·  view source on GitHub ↗
(&self, pubkey: Option<BlsPublicKey>)

Source from the content-addressed store, hash-verified

21 }
22
23 pub async fn do_get_header(&self, pubkey: Option<BlsPublicKey>) -> eyre::Result<Response> {
24 let default_pubkey = bls_pubkey_from_hex(
25 "0xac6e77dfe25ecd6110b8e780608cce0dab71fdd5ebea22a16c0205200f2f8e2e3ad3b71d3499c54ad14d6c21b41a37ae",
26 )?;
27 let url =
28 self.comm_boost.get_header_url(0, &B256::ZERO, &pubkey.unwrap_or(default_pubkey))?;
29 Ok(self.comm_boost.client.get(url).send().await?)
30 }
31
32 pub async fn do_get_status(&self) -> eyre::Result<Response> {
33 let url = self.comm_boost.get_status_url()?;

Callers 3

test_auto_refreshFunction · 0.80
test_get_headerFunction · 0.80

Calls 3

bls_pubkey_from_hexFunction · 0.85
get_header_urlMethod · 0.80
getMethod · 0.80

Tested by 3

test_auto_refreshFunction · 0.64
test_get_headerFunction · 0.64