Skip to content

Commit

Permalink
Merge pull request #1954 from synonymdev/increase-gap-limit
Browse files Browse the repository at this point in the history
chore(wallet): Increase Gap Limit
  • Loading branch information
coreyphillips authored Jun 5, 2024
2 parents 7a16b89 + 77ceb05 commit 0cb5aaf
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 0cb5aaf

Please sign in to comment.