adityapk00
a3f6668b4f
feat: Add admin debug commands ( #600 )
2023-02-21 07:49:17 -08:00
adityapk00
af69c98419
fix: Sync stalls after a few hours are not stored ( #599 )
2023-02-20 14:57:39 -08:00
Shane da Silva
d7c9e0a4ab
chore: bump changeset versions ( #597 )
2023-02-19 21:20:24 -08:00
Shane da Silva
96468718d0
Allow duplicate mentionsPositions ( #596 )
...
It is possible for a cast to have multiple mentions with the same
position. Consider the following cast:
@a@b@c
In this case, we are mentioning the users `a`, `b`, and `c`, without
separating their names with any other text. The resulting
`mentionsPositions` will be `[0, 0, 0]`, since there is no change in
position.
Relax our validations to allow this case.
2023-02-19 21:11:41 -08:00
adityapk00
f14bedab78
feat: p2p allowlist ( #595 )
2023-02-19 15:45:17 -08:00
Paul Fletcher-Hill
0c32de2230
chore: bump changeset versions ( #594 )
...
* bump package versions
* add prepublishOnly scripts to packages
* fix changelog typo
* remove lint from prepublishOnly
2023-02-19 13:57:44 -05:00
adityapk00
8a345cafec
feat: Allow reading server identity from environment ( #593 )
2023-02-19 10:29:09 -08:00
Paul Fletcher-Hill
245718cb13
bump package versions ( #592 )
2023-02-19 10:34:11 -05:00
Shane da Silva
3096e00f1a
fix: Allow empty cast text ( #591 )
...
* Allow empty cast text
Since a cast could consist of just a mention, a valid cast can have no
actual text, only a mention.
We should not fail in this case.
* Create silly-trees-tickle.md
---------
Co-authored-by: Paul Fletcher-Hill <1607180+pfletcherhill@users.noreply.github.com >
2023-02-19 10:25:30 -05:00
dependabot[bot]
1711d842ab
chore(deps): bump undici from 5.18.0 to 5.19.1 ( #579 )
...
Bumps [undici](https://github.com/nodejs/undici ) from 5.18.0 to 5.19.1.
- [Release notes](https://github.com/nodejs/undici/releases )
- [Commits](https://github.com/nodejs/undici/compare/v5.18.0...v5.19.1 )
---
updated-dependencies:
- dependency-name: undici
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-17 14:09:03 -08:00
Varun Srinivasan
1e601e7214
feat: grpc api documentation ( #562 )
...
* refactor: reorganize api calls by section
* docs: initial commit
2023-02-17 14:08:46 -08:00
adityapk00
2e0f705507
fix: Store peer contacts instead of RPC proxy objects ( #581 )
2023-02-17 10:53:58 -08:00
adityapk00
995548515a
fix: Cleanup prev commit ( #580 )
2023-02-17 09:14:30 -08:00
adityapk00
68bd26b3e7
fix: Make sync interruptable ( #578 )
2023-02-16 12:32:18 -08:00
adityapk00
daeda43ed9
fix: Log failed sync message that didn't merge ( #576 )
2023-02-16 10:32:54 -08:00
adityapk00
9a3807d135
feat: Detect unclean shutdown and rebuild trie CLI option ( #575 )
2023-02-16 10:01:01 -08:00
Vincent Liao
57fee6ab87
fix: relative path on hubble docs not resolving to contributing.md ( #564 )
2023-02-15 16:25:20 -08:00
Paul Fletcher-Hill
8068ec61d6
feat: support Renew events from the name registry contract ( #574 )
...
* feat: support Renew events from the name registry contract
* represent renews as NameRegistryEvents
* log both success and errors in eth events provider
* fix import syntax
2023-02-15 11:29:34 -08:00
Paul Fletcher-Hill
a31de82054
update changeset version ( #572 )
2023-02-14 17:42:09 -08:00
Paul Fletcher-Hill
2117ac7fc1
chore: replace SequentialMergeStore with locks ( #571 )
...
* intermediate commit
* remove SequentialMergeStore in favor of async-lock
2023-02-14 17:29:26 -08:00
adityapk00
51b0b7d1bb
fix: Clean shutdown for sync and merkle trie ( #570 )
...
* fix: Clean shutdown for sync and merkle trie
* logs
2023-02-14 12:27:29 -08:00
Paul Fletcher-Hill
54a3eb9117
fix: resolve out of range errors ( #569 )
2023-02-14 15:03:17 -05:00
Paul Fletcher-Hill
6a66bae932
feat: add mentionsPositions to CastAddBody ( #568 )
...
* add mentionsPositions to CastAddBody
* validate mentionsPositions sorted in ascending order
2023-02-13 18:26:23 -05:00
adityapk00
6967a7e8cc
feat: Use cron jobs to schedule peer syncs ( #567 )
2023-02-13 10:30:46 -08:00
Paul Fletcher-Hill
1151fea239
feat: change farcaster epoch ( #566 )
...
* update fromFarcasterTime and confirm 320 byte cast text limit
* fix sync tests that use the farcaster epoch
* add changeset
2023-02-13 11:31:33 -05:00
adityapk00
e69bebb525
fix: Occasional crash in UpdateNameRegistryEventExpiryJob ( #565 )
2023-02-13 06:42:20 -08:00
adityapk00
5d6e07cb50
feat: Unload Trie from memory ( #554 )
2023-02-13 06:06:45 -08:00
adityapk00
8819dfd47d
fix: Remove --no-fetch-ip arg ( #560 )
2023-02-11 10:49:32 -08:00
adityapk00
afacba8082
fix: Disable audit in github actions ( #559 )
2023-02-11 10:36:41 -08:00
Paul Fletcher-Hill
cf9c64c3a0
feat: asynchronously fetch NameRegistryEvent expiry ( #553 )
...
* intermediate name expiry commit
* integrate fname expiry update job with hubble
* add changeset
2023-02-10 12:09:59 -05:00
Chu Ka-cheong
bf4e899f13
feat: Sync Engine benchmark script ( #552 )
...
Add SyncEngine simulation. It is a round-based test (not CPU bound).
This test aims at measuring the performance of the sync algorithm.
Number of RPC are measured, which can be used to estimate the
performance in a network-bounded situation.
2023-02-10 06:54:49 -08:00
Paul Fletcher-Hill
c7aeb32bf5
fix: changing log message key again ( #551 )
2023-02-09 12:16:40 -05:00
adityapk00
b92e6e8f5b
fix: Better multiaddr parsing ( #550 )
...
* fix: Better multiaddr parsing
* forgot test
2023-02-09 08:07:00 -08:00
Chu Ka-cheong
31baa724c1
fix: 2 bugs that break sync ( #549 )
...
* Fix `getSnapshot` returning non-existent prefix in some cases (#536 )
* Refactor `getSnapshot` to make it more readable
* Fix `getAllValues` not working if child nodes are not loaded
* Add test cases for `getAllValues` case
2023-02-09 06:11:14 -08:00
Varun Srinivasan
b880a8851e
fix: e2e tests should validate a network of 10 nodes ( #548 )
2023-02-08 21:22:03 -08:00
Paul Fletcher-Hill
05b98663e1
fix: use msg instead of message for logs ( #547 )
2023-02-08 23:43:21 -05:00
adityapk00
05d4ac1b94
fix: Run the yarn console gen command batched ( #546 )
...
* fix: Run the yarn console gen command batched
* args
2023-02-08 18:10:41 -08:00
Paul Fletcher-Hill
b9410f2d3e
update hub logging ( #545 )
2023-02-08 19:54:16 -05:00
Varun Srinivasan
720ed34c7f
docs: libp2p upgrade instructions ( #544 )
2023-02-08 13:30:50 -08:00
adityapk00
829056f375
fix: gossip test ( #542 )
2023-02-08 11:49:05 -08:00
adityapk00
8a4507d063
feat: Gossip only messages submitted via RPC ( #541 )
2023-02-08 10:58:13 -08:00
adityapk00
491cb2917d
fix: Add checks before fetching syncIDs during sync ( #540 )
2023-02-08 08:47:12 -08:00
adityapk00
b870a815cb
fix: Fetch missing SyncIDs in parallel batches ( #539 )
2023-02-08 07:51:16 -08:00
adityapk00
e9a166f54d
fix: Use other snapshot prefix when syncing ( #538 )
...
Addresses some of the issues in #536
2023-02-08 06:52:01 -08:00
Varun Srinivasan
7483d8ca8e
chore: upgrade libp2p to 0.42.2 ( #534 )
...
* chore: upgrade libp2p to 0.42.2
* chore: add common terms to cSpell
2023-02-07 16:51:16 -08:00
adityapk00
124cb3e756
feat: Add protobufs, Factories and gen command to yarn console ( #537 )
2023-02-07 07:35:34 -08:00
Chu Ka-cheong
1774b35e0d
fix: incorrect prefix used by SyncEngine.getSnapshot() ( #535 )
...
SyncEngine.getSnapshot() divides timestamp by 10 inadvertently and
makes the prefix to be shifted right, causing the prefix to be mismatch
with with messages in MerkleTrie.
2023-02-07 06:23:17 -08:00
Varun Srinivasan
0311379208
chore: make version pinning stricter ( #532 )
...
* chore: strictly pin all versions of libp2p packages
* chore: pin versions with ~ instead of ^ wherever possible
2023-02-06 11:43:43 -08:00
adityapk00
b942d3c04f
fix: Init DB before loading Merkle Trie ( #533 )
2023-02-06 11:28:05 -08:00
adityapk00
a93c6b70ee
feat: Persist Merkle Trie to DB ( #531 )
...
* feat: Persist Merkle Trie to DB
* Save hash and items to DB
* fix benchmark
2023-02-06 08:08:19 -08:00