@@ -69,7 +69,7 @@ bool validate_wallet_outputs(jade_process_t* process, const uint32_t network_id,
6969 bool is_change = true;
7070 rpc_get_boolean ("is_change" , & arrayItem , & is_change );
7171
72- size_t csvBlocks = 0 ;
72+ size_t csv_blocks = 0 ;
7373 size_t script_len = 0 ;
7474 uint8_t script [WALLY_SCRIPTPUBKEY_P2WSH_LEN ]; // Sufficient
7575 size_t written = 0 ;
@@ -105,7 +105,7 @@ bool validate_wallet_outputs(jade_process_t* process, const uint32_t network_id,
105105 }
106106 } else if (rpc_has_field_data ("descriptor_name" , & arrayItem )) {
107107 // Not valid for liquid wallets atm
108- if (isLiquidNetworkId (network_id )) {
108+ if (network_is_liquid (network_id )) {
109109 * errmsg = "Descriptor wallets not supported on liquid network" ;
110110 goto cleanup ;
111111 }
@@ -164,21 +164,21 @@ bool validate_wallet_outputs(jade_process_t* process, const uint32_t network_id,
164164 rpc_get_string ("recovery_xpub" , sizeof (xpubrecovery ), & arrayItem , xpubrecovery , & written );
165165
166166 // Optional 'blocks' for csv outputs
167- rpc_get_sizet ("csv_blocks" , & arrayItem , & csvBlocks );
167+ rpc_get_sizet ("csv_blocks" , & arrayItem , & csv_blocks );
168168
169169 // If number of csv blocks unexpected show a warning message and ask the user to confirm
170- if (csvBlocks && !csvBlocksExpectedForNetwork (network_id , csvBlocks )) {
171- JADE_LOGW ("Unexpected number of csv blocks in path for output: %u" , csvBlocks );
170+ if (csv_blocks && !network_is_known_csv_blocks (network_id , csv_blocks )) {
171+ JADE_LOGW ("Unexpected number of csv blocks in path for output: %u" , csv_blocks );
172172 const int ret = snprintf (output_info [i ].message , sizeof (output_info [i ].message ),
173173 "This wallet output has a non-standard csv value (%u), so it may be difficult to find. "
174174 "Proceed at your own risk." ,
175- csvBlocks );
175+ csv_blocks );
176176 JADE_ASSERT (
177177 ret > 0 && ret < sizeof (output_info [i ].message )); // Keep message within size handled by gui
178178 }
179179
180180 // Build a script pubkey for the passed parameters
181- if (!wallet_build_ga_script (network_id , written ? xpubrecovery : NULL , csvBlocks , path , path_len ,
181+ if (!wallet_build_ga_script (network_id , written ? xpubrecovery : NULL , csv_blocks , path , path_len ,
182182 script , sizeof (script ), & script_len )) {
183183 JADE_LOGE ("Output %u path/script failed to construct" , i );
184184 * errmsg = "Receive script cannot be constructed" ;
@@ -409,7 +409,7 @@ void sign_tx_process(void* process_ptr)
409409 ASSERT_KEYCHAIN_UNLOCKED_BY_MESSAGE_SOURCE (process );
410410 GET_MSG_PARAMS (process );
411411 CHECK_NETWORK_CONSISTENT (process );
412- if (isLiquidNetworkId (network_id )) {
412+ if (network_is_liquid (network_id )) {
413413 jade_process_reject_message (
414414 process , CBOR_RPC_BAD_PARAMETERS , "sign_tx call not appropriate for liquid network" , NULL );
415415 goto cleanup ;
0 commit comments