Skip to content

Commit cac0fcb

Browse files
authored
chore: remove get_data_commitment (#47)
1 parent 76e3e9e commit cac0fcb

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

script/bin/test.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,6 @@ struct ScriptArgs {
1616
target_block: u64,
1717
}
1818

19-
pub async fn get_data_commitment(start_block: u64, end_block: u64) {
20-
// If start_block == end_block, then return a dummy commitment.
21-
// This will occur in the context of data commitment's map reduce when leaves that contain blocks beyond the end_block.
22-
23-
let route = format!(
24-
"data_commitment?start={}&end={}",
25-
start_block.to_string().as_str(),
26-
end_block.to_string().as_str()
27-
);
28-
29-
let url = format!("{}/{}", "https://rpc.lunaroasis.net/", route);
30-
31-
let res = reqwest::get(url.clone()).await;
32-
33-
debug!("Data Commitment Response: {:?}", res.unwrap())
34-
}
35-
3619
/// Generate a proof between the given trusted and target blocks.
3720
/// Example:
3821
/// ```

0 commit comments

Comments
 (0)