File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff 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/// ```
You can’t perform that action at this time.
0 commit comments