Skip to content

Commit

Permalink
feat: decrease num of addresses to fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
alter-eggo committed Apr 23, 2024
1 parent 4410185 commit b0276ec
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/query/bitcoin/address/utxos-by-address.query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function useGetUtxosByAddressQuery<T extends unknown = UtxoResponseItem[]
});
}

const stopSearchAfterNumberAddressesWithoutUtxos = 20;
const stopSearchAfterNumberAddressesWithoutUtxos = 5;

/**
* Returns all utxos for the user's current taproot account. The search for
Expand Down
2 changes: 1 addition & 1 deletion src/app/query/bitcoin/blockstream-rate-limiter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { BITCOIN_API_BASE_URL_TESTNET } from '@shared/constants';

const blockstreamMainnetApiLimiter = new PQueue({
interval: 5000,
intervalCap: 20,
intervalCap: 30,
});

const blockstreamTestnetApiLimiter = new PQueue({
Expand Down
2 changes: 1 addition & 1 deletion src/app/query/bitcoin/ordinals/inscriptions.query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { useCurrentAccountNativeSegwitIndexZeroSigner } from '@app/store/account
import { useCurrentTaprootAccount } from '@app/store/accounts/blockchain/bitcoin/taproot-account.hooks';
import { useCurrentNetwork } from '@app/store/networks/networks.selectors';

const stopSearchAfterNumberAddressesWithoutOrdinals = 20;
const stopSearchAfterNumberAddressesWithoutOrdinals = 5;
const addressesSimultaneousFetchLimit = 5;

// Hiro API max limit = 60
Expand Down

0 comments on commit b0276ec

Please sign in to comment.