From 77ceb0536203102c3efa303f5a45ad3b0a882ecb Mon Sep 17 00:00:00 2001 From: coreyphillips Date: Wed, 5 Jun 2024 10:12:53 -0400 Subject: [PATCH] chore(wallet): Increase Gap Limit Increases default gap limit to 10 for new wallets. Removes unused constants. --- src/store/shapes/wallet.ts | 4 ++-- src/utils/wallet/constants.ts | 9 --------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/store/shapes/wallet.ts b/src/store/shapes/wallet.ts index c78a01810..1664f7d9d 100644 --- a/src/store/shapes/wallet.ts +++ b/src/store/shapes/wallet.ts @@ -164,8 +164,8 @@ export const defaultWalletShape: Readonly = { }; const defaultGapLimitOptions = { - lookAhead: 5, - lookBehind: 5, + lookAhead: 10, + lookBehind: 10, }; export const getDefaultGapLimitOptions = (): TGapLimitOptions => { diff --git a/src/utils/wallet/constants.ts b/src/utils/wallet/constants.ts index 0d1a989f3..73efd3af0 100644 --- a/src/utils/wallet/constants.ts +++ b/src/utils/wallet/constants.ts @@ -2,15 +2,6 @@ export const BITKIT_WALLET_SEED_HASH_PREFIX = Buffer.from( '@Bitkit/wallet-uuid', ); -// How many addresses to generate when more are needed. -export const GENERATE_ADDRESS_AMOUNT = 5; - -// TODO: Add this as a settings for users to adjust when needed. -export const GAP_LIMIT = 20; - -// TODO: remove chunk logic and move it to rn-electrum library -export const CHUNK_LIMIT = 15; - export const TRANSACTION_DEFAULTS = { recommendedBaseFee: 256, // Total recommended tx base fee in sats dustLimit: 546, // Minimum value in sats for an output. Outputs below the dust limit may not be processed because the fees required to include them in a block would be greater than the value of the transaction itself.