fiatjaf
2e28cc809a
sdk/hints: HintsDB.GetDetailedScores()
2025-04-06 11:47:08 -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
0d5daf66bf
sdk: beginnings of basic wot helpers.
2025-03-28 21:49:26 -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
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
fiatjaf
d2ceac48f6
sdk: FetchWriteRelays() shouldn't have a hardcoded fallback, it's better to fail.
2025-03-12 00:18:41 -03:00
fiatjaf
769887fac1
sdk: ConcurrentMetadata test to fail properly.
2025-03-10 09:57:35 -03:00
fiatjaf
bbccd56108
kvstore: get rid of useless copy()s
2025-03-10 03:05:41 -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
5bfaed2740
docstrings for many functions.
2025-03-04 11:42:44 -03:00
fiatjaf
fec4524324
sdk: FetchSpecificEvent() takes options.
2025-02-16 18:45:29 -03:00
fiatjaf
b437cc6a1f
remove useless noswhere.com from list of id-only relays.
2025-02-16 11:53:41 -03:00
fiatjaf
3de002aca1
sdk: only instantiate caches by default when they are necessary.
2025-02-11 14:23:31 -03:00
fiatjaf
a8d6e1f37f
sdk: adjust test expected relay.
2025-02-09 18:12:27 -03:00
fiatjaf
d07cccdd45
nip27 parsing improved (and with nip08 support removed) in its own package.
2025-02-09 18:01:45 -03:00
fiatjaf
26da7967dc
sdk: decrease interval between replaceable lists and sets refetch attempts conditionally.
2025-02-04 19:27:57 -03:00
fiatjaf
48ce669a3d
sdk: increase sanity threshold of relay lists.
2025-02-04 10:33:28 -03:00
fiatjaf
c9f670d700
sdk: FetchWriteRelays() and comments explaining these relay functions.
2025-01-31 22:48:12 -03:00
fiatjaf
b1571e0253
sdk: fix FetchFeedPage()
...
I'm not sure if it was even wrong before, but now at least I understand it and is checked against pen and paper.
2025-01-31 14:27:44 -03:00
Josh Floth
bfc85a45a4
Fix nil pointer error in filter within sdk/feeds
2025-01-28 11:32:38 -03:00
fiatjaf
6daecc8bd2
sdk/hints: ok, we must have the db created wrongly first before we migrate it.
2025-01-25 00:21:01 -03:00
fiatjaf
1ff5647b2d
sdk/hints: implement sql migrations.
2025-01-25 00:15:39 -03:00
fiatjaf
501b2a7679
sdk: FetchInboxRelays()
2025-01-24 14:35:24 -03:00
fiatjaf
2d941907e3
sdk: fix fetching specific event from note1 codes.
2025-01-23 14:44:36 -03:00
fiatjaf
8d805b39bf
sdk: fix missing preemptive fallback to blank pubkey on FetchProfileMetadata().
2025-01-23 14:41:18 -03:00
fiatjaf
85c268b8e2
sdk: fix for when we have no record of ever trying to fetch replaceables.
2025-01-21 17:42:07 -03:00
fiatjaf
df6aaa3ad3
sdk: test for feeds and a fix.
2025-01-20 13:45:43 -03:00
fiatjaf
f992c6e7ea
sdk: pubkey feeds, live and past pages.
2025-01-20 13:04:44 -03:00
fiatjaf
40538486d5
sdk/hints: use a single "hint" type instead of nprofile/nevent/tag/nip05.
2025-01-18 18:19:54 -03:00
fiatjaf
6cffcc3b47
sdk: make it so replaceable stuff is automatically reloaded from time to time.
2025-01-17 18:21:19 -03:00
fiatjaf
3fd33ce281
fix locking on generic list and set fetching, decrease dataloader batch size, test.
2025-01-17 17:39:24 -03:00
fiatjaf
3e1c0ddc7e
fix pinging relays: use the main relay context, not the relay connection temporary context.
2025-01-17 14:08:54 -03:00
fiatjaf
06a15fdaab
follow list fetching test and related changes and fixes.
...
- make BatchedSubManyEose() use a single duplicate id index and use it for replaceable loaders;
- fixes parsing follow entry from kind:3 events (and others);
- adds a "cause" to most cancelation errors in relay/pool;
- remove the inherent cache from dataloader (we have our own hopefully);
- increase max frame size we can read from any websocket to 2**18 (262k), which gives over 2000 item lists.
2025-01-17 13:44:51 -03:00
fiatjaf
7be028ff7c
sdk: test and fix encode/decode relay lists.
2025-01-16 17:53:44 -03:00
fiatjaf
956868e956
sdk: clarify event tracker functions.
2025-01-16 17:47:31 -03:00
fiatjaf
febf022124
add some basic sdk tests, fix saving hints (normalize urls), checkduplicates arg order, kvdb stuff and other things.
2025-01-16 17:39:16 -03:00
fiatjaf
46569b6ef4
sdk: actually no, let's store all relay urls together in the same kvdb key.
2025-01-16 11:30:14 -03:00
fiatjaf
4cf9631c28
sdk: use a prefix iterator on kvdb for storing relay urls associated with ids.
2025-01-16 10:25:00 -03:00