sdk: FetchNutZapInfo() using the same flow as FetchProfileMetadata().

This commit is contained in:
fiatjaf
2025-10-26 17:32:00 -03:00
parent 5c8f04efa1
commit a78ad86b41
3 changed files with 96 additions and 2 deletions

View File

@@ -43,6 +43,7 @@ type System struct {
TopicSetsCache cache.Cache32[GenericSets[string, Topic]]
ZapProviderCache cache.Cache32[nostr.PubKey]
MintKeysCache cache.Cache32[map[uint64]*btcec.PublicKey]
NutZapInfoCache cache.Cache32[NutZapInfo]
Hints hints.HintsDB
Pool *nostr.Pool
RelayListRelays *RelayStream
@@ -140,6 +141,9 @@ func NewSystem() *System {
if sys.MintKeysCache == nil {
sys.MintKeysCache = cache_memory.New[map[uint64]*btcec.PublicKey](8000)
}
if sys.NutZapInfoCache == nil {
sys.NutZapInfoCache = cache_memory.New[NutZapInfo](8000)
}
if sys.Store == nil {
sys.Store = &nullstore.NullStore{}