File tree Expand file tree Collapse file tree 1 file changed +14
-8
lines changed
examples/client-cardano-database-v2/src Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -121,21 +121,27 @@ async fn main() -> MithrilResult<()> {
121
121
println ! ( "Could not send usage statistics to the aggregator: {e:?}" ) ;
122
122
}
123
123
124
- println ! (
125
- "Computing Cardano database snapshot '{}' message..." ,
126
- cardano_database_snapshot. hash
127
- ) ;
124
+ println ! ( "Verifying Cardano database..." , ) ;
128
125
let allow_missing_immutables_files = false ;
129
- let message = wait_spinner (
130
- & progress_bar ,
131
- MessageBuilder :: new ( ) . compute_cardano_database_message (
126
+ let merkle_proof = client
127
+ . cardano_database_v2 ( )
128
+ . verify_cardano_database (
132
129
& certificate,
133
130
& cardano_database_snapshot,
134
131
& immutable_file_range,
135
132
allow_missing_immutables_files,
136
133
& unpacked_dir,
137
134
& verified_digests,
138
- ) ,
135
+ )
136
+ . await ?;
137
+
138
+ println ! (
139
+ "Computing Cardano database snapshot '{}' message..." ,
140
+ cardano_database_snapshot. hash
141
+ ) ;
142
+ let message = wait_spinner (
143
+ & progress_bar,
144
+ MessageBuilder :: new ( ) . compute_cardano_database_message ( & certificate, & merkle_proof) ,
139
145
)
140
146
. await ?;
141
147
You can’t perform that action at this time.
0 commit comments