Commit Graph

61 Commits

Author SHA1 Message Date
Jacob Karlsson 8f2bd08a60 Don't throw on missing local want range 2024-06-09 17:42:24 +02:00
Jacob Karlsson 2b74aa6b1a Fix not checking null on dbtangle call 2024-06-05 17:29:54 +02:00
Jacob Karlsson 5797116a87 Handle missing remoteWants without throwing 2024-05-29 17:17:47 +02:00
Jacob Karlsson 87b6b25685 Fix failing realtime test 2024-05-29 14:56:20 +02:00
Jacob Karlsson 636cd9adcc Add failing test where we don't create a message before realtime sync 2024-05-29 14:48:40 +02:00
Jacob Karlsson 6a8ed87f6f Remove todo comment in favor of #3 2024-05-04 18:54:32 +02:00
Jacob Karlsson 7e56b024c9 Use async db fns and rename to pzp 2024-05-04 15:54:04 +02:00
Powersource 5fef427ebb
Validate all incoming payloads in Stream (#6) 2024-03-13 13:04:45 +01:00
Andre Staltz 93f00dbd04
Test that dataless msgs can be replaced by dataful 2024-03-05 17:07:33 +02:00
Andre Staltz 47eb2dd27f
realtime sync works in both connection directions 2024-02-29 11:30:39 +02:00
Andre Staltz 54aa67a08f
realtime sync 2024-02-22 16:37:28 +02:00
Andre Staltz e9971410eb
Improve error messages in Stream 2024-02-13 15:36:57 +02:00
Andre Staltz 0bc100557e
treat cases where getTangle() is null 2024-01-30 17:50:09 +02:00
Andre Staltz 2a4f39a832
minor refactor 2024-01-23 18:24:38 +02:00
Andre Staltz 6e54ca2724
close connect() stream on rpc closed 2024-01-14 13:09:44 +02:00
Andre Staltz ae3d1d83d8
update secret-stack to 8.1 2024-01-08 11:33:45 +02:00
Andre Staltz 26dcefc459
update plugin assertion errors 2024-01-02 13:13:27 +02:00
Andre Staltz d7a5c2694f
update to msg-v4 2023-12-25 12:31:55 +02:00
Andre Staltz dd8499cf91
handle "none" goals 2023-12-19 16:29:42 +02:00
Andre Staltz f4ab599bd1
support start() before peers connect 2023-12-16 16:55:45 +02:00
Andre Staltz 6a9f46b337
account msgs piggyback on tangle msg sync 2023-12-16 16:18:23 +02:00
Andre Staltz 33ef08c62b
update protospec 2023-12-14 14:00:39 +02:00
Andre Staltz 6ba8d55dde
fix stream phase 9 again 2023-12-13 16:15:29 +02:00
Andre Staltz d1ccc3426e
fix stream phase 9 when no msgs received 2023-12-13 16:08:42 +02:00
Andre Staltz 782b435a98
better secret-stack plugin shape 2023-12-13 15:14:36 +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 ffb8860fb8
use cutting-edge secret-stack with bare and shse.pubkey 2023-07-14 13:35:38 +03:00
Andre Staltz 403fcefc3a
improve logic when an RPC connect is detected 2023-07-13 11:15:16 +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 b503476824
format code 2023-04-26 14:32:08 +03:00
Andre Staltz 2a2b184dd1
revise phases in Stream and write down spec 2023-04-21 17:30:20 +03:00
Andre Staltz 4051ba00e2
tiny refactor 2023-04-21 15:57:22 +03:00
Andre Staltz 80168f77cc
improve package.json files and exports 2023-04-21 14:56:32 +03:00
Andre Staltz 5c10949194
update usage of feedv1 2023-04-21 14:30:48 +03:00
Andre Staltz 51f3f52b95 add helper API: setFeedGoal(who,type) 2023-04-21 13:59:53 +03:00
Andre Staltz af33dc691f fix thread sync when one peer has nothing 2023-04-21 11:53:34 +03:00