Skip to content

Commit bb330d1

Browse files
committed
fix: use dip17 gap limit
1 parent a5ab863 commit bb330d1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

key-wallet-ffi/include/key_wallet_ffi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ typedef enum {
9393
DASHPAY_RECEIVING_FUNDS = 11,
9494
DASHPAY_EXTERNAL_ACCOUNT = 12,
9595
/*
96-
Platform Payment address (DIP17) - Path: m/9'/5'/17'/account'/key_class'/index
96+
Platform Payment address (DIP17/DIP18) - Path: m/9'/5'/17'/account'/key_class'/index
9797
*/
9898
PLATFORM_PAYMENT = 13,
9999
} FFIAccountType;

key-wallet/src/managed_account/managed_account_collection.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use crate::account::account_collection::{DashpayAccountKey, PlatformPaymentAccou
77
use crate::account::account_type::AccountType;
88
use crate::gap_limit::{
99
DEFAULT_COINJOIN_GAP_LIMIT, DEFAULT_EXTERNAL_GAP_LIMIT, DEFAULT_INTERNAL_GAP_LIMIT,
10-
DEFAULT_SPECIAL_GAP_LIMIT,
10+
DEFAULT_SPECIAL_GAP_LIMIT, DIP17_GAP_LIMIT,
1111
};
1212
use crate::managed_account::address_pool::{AddressPool, AddressPoolType};
1313
use crate::managed_account::managed_account_type::ManagedAccountType;
@@ -612,7 +612,7 @@ impl ManagedAccountCollection {
612612
let addresses = AddressPool::new(
613613
base_path,
614614
AddressPoolType::Absent,
615-
DEFAULT_SPECIAL_GAP_LIMIT,
615+
DIP17_GAP_LIMIT,
616616
network,
617617
key_source,
618618
)?;

0 commit comments

Comments
 (0)