MCPcopy Create free account
hub / github.com/Commit-Boost/commit-boost-client / new

Method new

tests/src/mock_validator.rs:16–21  ·  view source on GitHub ↗
(port: u16)

Source from the content-addressed store, hash-verified

14
15impl MockValidator {
16 pub fn new(port: u16) -> eyre::Result<Self> {
17 let pubkey = bls_pubkey_from_hex(
18 "0xac6e77dfe25ecd6110b8e780608cce0dab71fdd5ebea22a16c0205200f2f8e2e3ad3b71d3499c54ad14d6c21b41a37ae",
19 )?;
20 Ok(Self { comm_boost: generate_mock_relay(port, pubkey)? })
21 }
22
23 pub async fn do_get_header(&self, pubkey: Option<BlsPublicKey>) -> eyre::Result<Response> {
24 let default_pubkey = bls_pubkey_from_hex(

Callers

nothing calls this directly

Calls 2

bls_pubkey_from_hexFunction · 0.85
generate_mock_relayFunction · 0.85

Tested by

no test coverage detected