MCPcopy Create free account
hub / github.com/ddimaria/rust-blockchain-tutorial / client

Function client

chain/src/helpers.rs:64–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62 }
63
64 pub(crate) fn client() -> HttpClient {
65 let url = format!("http://{}", ADDRESS);
66 HttpClientBuilder::default().build(url).unwrap()
67 }
68
69 pub(crate) async fn setup() -> (Arc<Mutex<BlockChain>>, H160, H160) {
70 // Storage::destroy(DATABASE_NAME).unwrap();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected