Commit Graph

35 Commits

Author SHA1 Message Date
Jacob Karlsson 2b74aa6b1a Fix not checking null on dbtangle call 2024-06-05 17:29:54 +02:00
Jacob Karlsson 7e56b024c9 Use async db fns and rename to pzp 2024-05-04 15:54:04 +02:00
Andre Staltz 93f00dbd04
Test that dataless msgs can be replaced by dataful 2024-03-05 17:07:33 +02:00
Andre Staltz 54aa67a08f
realtime sync 2024-02-22 16:37:28 +02:00
Andre Staltz 0bc100557e
treat cases where getTangle() is null 2024-01-30 17:50:09 +02:00
Andre Staltz ae3d1d83d8
update secret-stack to 8.1 2024-01-08 11:33:45 +02:00
Andre Staltz d7a5c2694f
update to msg-v4 2023-12-25 12:31:55 +02:00
Andre Staltz 6a9f46b337
account msgs piggyback on tangle msg sync 2023-12-16 16:18:23 +02:00
Andre Staltz e7bc0e1918
update db, rename to ppppp-sync 2023-11-24 15:08:48 +02:00
Andre Staltz ecd604a46f
support goal=dict and goal=set 2023-11-03 13:34:02 +02:00
Andre Staltz 4c29073028
replace ppppp-record with ppppp-dict 2023-10-26 13:27:23 +03:00
Andre Staltz 4218dabb60
can replicate record tangles containing ghosts 2023-10-25 19:35:27 +03:00
Andre Staltz 31ed9d0036
cosmetic refactor 2023-10-25 15:33:44 +03:00
Andre Staltz 574d43f1a6
fix algorithm wantRange plus test it 2023-10-25 14:13:15 +03:00
Andre Staltz 20be886872
remove goal "oldest" 2023-10-12 15:31:41 +03:00
Andre Staltz 4637a24960
fix calculation of wantRange for newest goal
We shouldn't use maxLocalHave+1 because we are interested in
EVERYTHING the remote peer has, as long as it is inside the "size"
defined for this goal. Bloom filters will then make sure we are
not getting what we already have in this range.
2023-10-12 13:13:52 +03:00
Andre Staltz eff0c57517
update goals API, add type checking 2023-09-29 14:48:54 +03:00
Andre Staltz 8e43c0efab
replace internal goals with ppppp-goals 2023-09-08 16:42:27 +03:00
Andre Staltz cfb186c0fe
refactor algorithm commit() 2023-09-08 13:46:54 +03:00
Andre Staltz fc30b3e2d2
refactor range 2023-09-08 13:46:18 +03:00
Andre Staltz 317f7c0a05
update to new ppppp-db with rec.id 2023-09-07 17:31:11 +03:00
Andre Staltz 07f83677d4
update to msg-v3 format 2023-07-11 11:02:22 +03:00
Andre Staltz 32c5b903b1
update to support msg-v2 2023-05-26 13:54:32 +03:00
Andre Staltz 37bdc344f3
fix some JSDoc arguments 2023-05-25 17:39:59 +03:00
Andre Staltz 4051ba00e2
tiny refactor 2023-04-21 15:57:22 +03:00
Andre Staltz 5c10949194
update usage of feedv1 2023-04-21 14:30:48 +03:00
Andre Staltz af33dc691f fix thread sync when one peer has nothing 2023-04-21 11:53:34 +03:00
Andre Staltz a9fd222f0d always send tangle certpool to remote peer 2023-04-18 18:49:32 +03:00
Andre Staltz 277f9dbbee more general haveRange() 2023-04-17 17:02:15 +03:00
Andre Staltz 1a76e665de pruneNewest 2023-04-17 16:49:58 +03:00
Andre Staltz b0d20287ce remove unnecessary wantRange() argument 2023-04-14 11:44:20 +03:00
Andre Staltz 7df89f3439 set goals: all, newest, oldest 2023-04-12 23:17:02 +03:00
Andre Staltz 08d9fd1eda make new algorithm.js 2023-04-10 22:53:36 +03:00
Andre Staltz 5b0244709b use thread-sync for feeds too 2023-04-10 22:32:28 +03:00
Andre Staltz a473c8fec1 init from dagsync 2023-04-09 11:24:49 +03:00