Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(wallet): Increase Gap Limit #1954

Merged
merged 1 commit into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading