mirror of
https://github.com/aljazceru/cdk.git
synced 2025-12-19 13:44:55 +01:00
fix: keyset max order checked (#1070)
This commit is contained in:
@@ -59,7 +59,7 @@ pub async fn init_keysets(
|
|||||||
if let Some((input_fee_ppk, max_order)) = supported_units.get(&unit) {
|
if let Some((input_fee_ppk, max_order)) = supported_units.get(&unit) {
|
||||||
if !keysets.is_empty()
|
if !keysets.is_empty()
|
||||||
&& &highest_index_keyset.input_fee_ppk == input_fee_ppk
|
&& &highest_index_keyset.input_fee_ppk == input_fee_ppk
|
||||||
&& &highest_index_keyset.max_order == max_order
|
&& highest_index_keyset.amounts.len() == (*max_order as usize)
|
||||||
{
|
{
|
||||||
tracing::debug!("Current highest index keyset matches expect fee and max order. Setting active");
|
tracing::debug!("Current highest index keyset matches expect fee and max order. Setting active");
|
||||||
let id = highest_index_keyset.id;
|
let id = highest_index_keyset.id;
|
||||||
|
|||||||
Reference in New Issue
Block a user