Skip to content

Commit

Permalink
chore(wallet): Increase Gap Limit
Browse files Browse the repository at this point in the history
Increases default gap limit to 10 for new wallets.
Removes unused constants.
  • Loading branch information
coreyphillips committed Jun 5, 2024
1 parent 6f4c9c7 commit 77ceb05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/store/shapes/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ export const defaultWalletShape: Readonly<IWallet> = {
};

const defaultGapLimitOptions = {
lookAhead: 5,
lookBehind: 5,
lookAhead: 10,
lookBehind: 10,
};

export const getDefaultGapLimitOptions = (): TGapLimitOptions => {
Expand Down
9 changes: 0 additions & 9 deletions src/utils/wallet/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 77ceb05

Please sign in to comment.