File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -117,14 +117,18 @@ pub unsafe extern "C" fn ffi_dash_spv_get_quorum_public_key(
117117
118118 let engine_guard = engine. blocking_read ( ) ;
119119 let ( before, _after) = engine_guard. masternode_lists_around_height ( core_chain_locked_height) ;
120- let Some ( ml) = before else {
121- return FFIResult :: error (
122- FFIErrorCode :: ValidationError ,
123- & format ! (
124- "No masternode list found at or before height {}" ,
125- core_chain_locked_height
126- ) ,
127- ) ;
120+ let ml = match before {
121+ Some ( ml) => ml,
122+ None => {
123+ return FFIResult :: error (
124+ FFIErrorCode :: ValidationError ,
125+ & format ! (
126+ "No masternode list found at or before height {}" ,
127+ core_chain_locked_height
128+ ) ,
129+ ) ;
130+ }
131+ } ;
128132
129133 let list_height = ml. known_height ;
130134 match ml. quorums . get ( & llmq_type) {
You can’t perform that action at this time.
0 commit comments