Commit Graph

97 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 b851d3eaf1 1.0.2 2024-05-29 17:29:21 +02:00
Powersource dbb4bb28e6 Merge pull request 'Handle missing remoteWants without throwing' (#9) from missing-remotewant into master
Reviewed-on: https://codeberg.org/pzp/pzp-sync/pulls/9
2024-05-29 15:27:51 +00:00
Jacob Karlsson 5797116a87 Handle missing remoteWants without throwing 2024-05-29 17:17:47 +02:00
Jacob Karlsson c6d142dd0c 1.0.1 2024-05-29 15:13:06 +02:00
Powersource 5410d7a87c Merge pull request 'Add realtime sync test with 100 msgs' (#6) from 100-realtime into master
Reviewed-on: https://codeberg.org/pzp/pzp-sync/pulls/6
2024-05-29 13:11:30 +00: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 e199eb97d3 Fix realtime 100 test with a hack 2024-05-28 15:38:30 +02:00
Jacob Karlsson cbf12a5e8c Start adding realtime test with 100 msgs 2024-05-23 18:46:36 +02:00
Jacob Karlsson c1a5b0a9e2 1.0.0 2024-05-05 17:27:07 +02:00
Powersource 661d8d8b0b Merge pull request 'Use async db fns and rename to pzp' (#2) from async-db into master
Reviewed-on: https://codeberg.org/pzp/pzp-sync/pulls/2
2024-05-05 15:21:18 +00:00
Jacob Karlsson 358b673c5a Add codeberg ci 2024-05-05 16:48:00 +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 1d3169724d
package.json ppppp deps specify commit tag 2024-01-31 13:49:18 +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 cdbc2de15e
add tests for empty dict and set 2024-01-16 16:17:15 +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 0cd2a56fc8
update secret-stack to 8.0 2023-12-29 13:00:45 +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 0ae7704994
update shse 2023-11-28 10:09:09 +02:00
Andre Staltz fd559349f2
ci: use node.js 18 and 20 2023-11-28 10:08:17 +02:00
Andre Staltz 4b11ab9d9c
fix tests 2023-11-28 10:08:05 +02:00
Andre Staltz 6aeaf896de
update readme 2023-11-24 15:09:26 +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 0bc405739e
update a test 2023-10-26 12:55:27 +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