Commit Graph

103 Commits

Author SHA1 Message Date
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 30b5e7cf8a
remove unused dep 2023-09-29 12:18:50 +03:00
Andre Staltz 8e43c0efab
replace internal goals with ppppp-goals 2023-09-08 16:42:27 +03:00
Andre Staltz c4bd7f9b49
improve test of feed sync when pruning range hole 2023-09-08 13:47:21 +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 f6f16bdd47
rename identity to account 2023-08-10 10:40: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 af5ac3435d
replace tape with node:test 2023-07-11 11:08:53 +03:00
Andre Staltz 07f83677d4
update to msg-v3 format 2023-07-11 11:02:22 +03:00
Andre Staltz 17b720cb60
use ppppp-db latest 2023-06-05 11:31:44 +03:00
Andre Staltz 7a84f8b51e
tests for identity tangle sync 2023-05-26 14:46:08 +03:00
Andre Staltz 1a2d73cf8d
use feed.getId() in tests 2023-05-26 14:45:42 +03:00
Andre Staltz 82fead6c2d
update tests to not directly use MsgV2 APIs 2023-05-26 14:14:11 +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 8be82ba6a2
boring license headers 2023-04-28 14:09:34 +03:00
Andre Staltz b503476824
format code 2023-04-26 14:32:08 +03:00
Andre Staltz 1aac2f56a2
fix protospec.md 2023-04-26 14:26:51 +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 39c6fd00a2
update CI tool 2023-04-21 14:41:14 +03:00
Andre Staltz 45118c7e01
set module type to commonjs 2023-04-21 14:40:32 +03:00
Andre Staltz c2b98014a5
fix ppppp-db dep 2023-04-21 14:33:52 +03:00
Andre Staltz 9d8e7cf4cd
MITMIT 2023-04-21 14:31:31 +03:00
Andre Staltz 5c10949194
update usage of feedv1 2023-04-21 14:30:48 +03:00
Andre Staltz aea89ed525 lets try this 2023-04-21 14:14:26 +03:00
Andre Staltz 51f3f52b95 add helper API: setFeedGoal(who,type) 2023-04-21 13:59:53 +03:00
Andre Staltz fb95886055 test that threads with reactions can sync too 2023-04-21 13:58:36 +03:00
Andre Staltz 2f4c07d505 improve tests 2023-04-21 13:07:15 +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 7343a4428a add c8 devdep 2023-04-18 12:45:13 +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 182156e1a2 tidy one test 2023-04-14 11:46:23 +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 f3a8d805e9 Stream: put all phases in switch-case 2023-04-12 22:34:32 +03:00
Andre Staltz 9f25aeeffa tiny renaming 2023-04-12 12:03:31 +03:00
Andre Staltz 832dbb9d33 multi-author tangle sync test passes 2023-04-10 23:13:42 +03:00
Andre Staltz e52af181dd rename old files 2023-04-10 22:54:17 +03:00