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:
parent
54044f165c
commit
e66d976ee8
3 changed files with 8 additions and 2 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue