chore: Update logging and configuration in market-related files

- Enhance logging in useMarket and NostrClient to provide better insights during event fetching and market loading.
- Add local relay support in configuration for improved development and testing.
- Adjust delay in event fetching to ensure more reliable data collection from relays.
This commit is contained in:
padreug 2025-08-02 17:46:19 +02:00
parent 54044f165c
commit e66d976ee8
3 changed files with 8 additions and 2 deletions

View file

@ -146,6 +146,8 @@ export function useMarket() {
console.log('Loading stalls for market pubkey:', marketPubkey)
// Fetch stall events for this market
// Note: We need to fetch all stalls and then filter by the ones that belong to this market
// since stalls don't have a direct market association in their tags
const events = await client.fetchEvents({
kinds: [MARKET_EVENT_KINDS.STALL],
authors: [marketPubkey]