863 Commits

Author SHA1 Message Date
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
fiatjaf
42a2243b72 tags Clone() and CloneDeep() 2025-03-11 16:35:51 -03:00
fiatjaf
7df79c1845 improve readme tagline. 2025-03-11 15:32:21 -03:00
fiatjaf
657c6edf6c remove sonic from the default build, guard it under "sonic" tag for now. v0.51.2 2025-03-10 17:33:32 -03:00
fiatjaf
74e121075e try to prevent pointer to pointer bug. v0.51.1 2025-03-10 16:16:44 -03:00
fiatjaf
769887fac1 sdk: ConcurrentMetadata test to fail properly. v0.51.0 2025-03-10 09:57:35 -03:00
fiatjaf
f19125af65 get rid of nocopy, do it directly. 2025-03-10 09:42:55 -03:00
fiatjaf
bbccd56108 kvstore: get rid of useless copy()s 2025-03-10 03:05:41 -03:00
fiatjaf
d430b8c9ed I had forgotten to implement Tags.FindAll() 2025-03-10 02:58:31 -03:00
fiatjaf
459273216c replace deprecated functions in multiple places. 2025-03-10 02:56:12 -03:00
fiatjaf
8d869009b0 localhost and 127.0.0.1 are "virtual" relays, but not when running go test 2025-03-10 02:49:08 -03:00
fiatjaf
7e04bbb4b8 breaking pointer mess
- ExternalPointer (?)
- nip27, nip22 and nip10 functions to return pointers
- get rid of sdk/thread helpers that were just a thin layer over nip10 and nip22
2025-03-10 02:38:06 -03:00
fiatjaf
f575f63f6c nip92: fix imeta parsing to guard against invalid tags. 2025-03-10 02:34:17 -03:00