Commit Graph

875 Commits

Author SHA1 Message Date
leonardo
6de0bc6073 feat: update gonuts dependency v0.52.0 2025-08-18 18:44:07 -03:00
DanConwayDev
fa0db40822 set default InfoLogger DebugLogger to io.Discard
As applications want select for themselves what gets written to
stderr or stdout. Particularly when it gets passed through to parent
processes that aren't just writing it to a log file.
2025-07-23 16:13:10 -03:00
1l0
0a7f44307d nip44: use fmt.Errorf correctly 2025-06-14 21:10:30 -03:00
1l0
2f4a604975 nip11: add user-agent for nostr.wine, replace dead relays 2025-06-14 21:09:52 -03:00
fiatjaf
dde31e3637 nip27: fix ws:// parsing. 2025-06-08 10:52:59 -03:00
fiatjaf
5c2d463313 Pointer cannot hold a pointer so it can't be a hidden nil. v0.51.12 2025-05-25 15:57:47 -03:00
pippellia-btc
48bc94aaeb probably fixing race condition v0.51.11 2025-05-07 10:29:16 -03:00
pippellia-btc
1e42994d7f fixed panic when there is no "relay" tag 2025-05-05 11:49:30 -03:00
fiatjaf
57683d4cae nip46: fix messages nip04->nip44. 2025-04-21 08:33:31 -03:00
Kay
40535e6b19 feat(nip11): update to nips pr nostr-protocol/nip#1821 2025-04-13 14:15:43 -03:00
fiatjaf
b6f0e46a85 nip45: support kind:1111 comment counts. 2025-04-10 23:06:26 -03:00
fiatjaf
a90f9e61a2 sdk: prepare note for publication (wip). 2025-04-10 17:49:03 -03:00
fiatjaf
5e650f27ff nip77: fix envelope parsing. v0.51.10 2025-04-08 12:22:17 -03:00
fiatjaf
dad99b226c relay: fix unsafe overwriting of event buffer that affected parsed pubkeys, ids, content. v0.51.9 2025-04-07 15:56:36 -03:00
fiatjaf
0fc00d8a68 sdk/hints: eliminate two unnecessary unsafe conversions on copy. 2025-04-07 15:14:56 -03:00
fiatjaf
ed0c6534da nip27: fix for contents that end in broken strings. 2025-04-07 15:10:58 -03:00
fiatjaf
14beb34363 sdk: hint tracker to use new nip27 parser. 2025-04-06 13:33:30 -03:00
fiatjaf
a88b34ed3c sdk/hints: simplify memory. 2025-04-06 11:56:48 -03:00
fiatjaf
2e28cc809a sdk/hints: HintsDB.GetDetailedScores() 2025-04-06 11:47:08 -03:00
fiatjaf
05e2018d3a exit BatchedSubManyEose() immediately as the context expires.
I'm not sure about this, but seems to work.
2025-04-06 09:40:54 -03:00
fiatjaf
bba332aea6 pool: pre-update seenAlready atomically so there is no risk of the same event being parsed and dispatched twice racily. 2025-04-06 09:40:32 -03:00
fiatjaf
198dc6ebda fix (break) sys.FetchWriteRelays() signature. 2025-04-04 23:40:27 -03:00
fiatjaf
087e6c220a sdk: include level1 follows in the wot. 2025-04-04 14:34:16 -03:00
fiatjaf
72eeabd2f4 sdk: wot knows its size. 2025-04-04 14:32:08 -03:00
fiatjaf
4705719c76 sdk: fix wot filter. 2025-04-04 13:47:39 -03:00
fiatjaf
c3cfb21097 sdk: replaceable loader checks if result exists first on map. 2025-04-03 23:25:59 -03:00
fiatjaf
f3ef256e65 sdk: wot xor filter has a proper .Contains() function. 2025-04-03 23:25:08 -03:00
fiatjaf
1ccd9ba417 pool.PublishMany() runs in parallel. 2025-04-03 23:24:13 -03:00
fiatjaf
b48d2249b9 small things. 2025-04-03 00:24:16 -03:00
fiatjaf
0d5daf66bf sdk: beginnings of basic wot helpers. 2025-03-28 21:49:26 -03:00
fiatjaf
6fc68dc039 nip70: HasEmbeddedProtected() v0.51.8 2025-03-28 17:41:41 -03:00
fiatjaf
a60e225a5f sdk/dataloader simplify and fix lock issues, now it will work. 2025-03-28 17:41:41 -03:00
fiatjaf
d1fca24cc3 sdk/dataloader: fix lock around reset()/create new batch logic. 2025-03-25 19:45:17 -03:00
fiatjaf
15d946dad8 sdk: update list of fallback relays. 2025-03-25 17:37:47 -03:00
fiatjaf
ca9c2d7c57 sdk/hints: add lmdb implementation. 2025-03-25 17:06:28 -03:00
fiatjaf
a1e2a46b5b sdk/hints: add badger implementation. 2025-03-25 17:00:37 -03:00
fiatjaf
1544d90354 split up serializeEvent() v0.51.7 2025-03-24 15:54:08 -03:00
fiatjaf
e18528c043 move ExternalPointer to nip73 and write nip27.Parse() that gets all the parts of the text including URLs, Nostr URIs and just raw text. 2025-03-24 15:50:10 -03:00
fiatjaf
3ebfc7812b sdk: simplified dataloader event more. should be faster. 2025-03-24 15:50:10 -03:00
fiatjaf
78dbf9def5 use our own dataloader and simplify batch replaceable requests, removing bugs. 2025-03-24 15:50:10 -03:00
pippellia-btc
25838a024e added lenght check 2025-03-24 15:39:54 -03:00
fiatjaf
c1d9c094ee get rid of base64x temporarily since it doesn't work on arm64. v0.51.6 2025-03-19 14:59:49 -03:00
fiatjaf
7c9c5d7cd9 fix unsafe strings that change underneath us on envelope parsing by force-copying them as gjson doesn't. v0.51.5 2025-03-14 21:09:33 -03:00
fiatjaf
c64ebde59d fix sonic parsing req envelopes with limit/since/until. v0.51.4 2025-03-14 20:08:56 -03:00
fiatjaf
4dcadd4d88 update go version so we can use the new benchmarking helper. 2025-03-13 18:57:30 -03:00
fiatjaf
1b610ba318 khatru string transition v0.51.3 2025-03-12 00:55:08 -03:00
fiatjaf
cc23d81e80 pool's .FetchManyReplaceable() and amends to previous commit. 2025-03-12 00:49:58 -03:00
fiatjaf
441f94563f WithCheckDuplicateReplaceable() and helper functions for efficient replaceable event matching. 2025-03-12 00:19:41 -03:00
fiatjaf
d2ceac48f6 sdk: FetchWriteRelays() shouldn't have a hardcoded fallback, it's better to fail. 2025-03-12 00:18:41 -03:00
fiatjaf
cecc71cd81 fix and improve envelope stuff again, deal with messages as strings on all envelope parsing steps. 2025-03-12 00:18:11 -03:00