Commit Graph

527 Commits

Author SHA1 Message Date
adityapk00
e900d010ee Release v1.0.19 of hubble (#789) @farcaster/hubble@1.0.19 2023-03-30 13:06:00 -07:00
adityapk00
9ee10769c2 fix: Improve RPC error messages (#788) 2023-03-30 11:23:36 -07:00
adityapk00
1f3286538d fix: Missed a check if previous PR (#786) 2023-03-29 19:47:16 -07:00
adityapk00
fe74a1e5f4 handle errors (#785)
* handle errors

* changeset
2023-03-29 19:38:39 -07:00
adityapk00
4a77060597 fix: allow multiple passwords for a rpc user (#784) 2023-03-29 19:14:47 -07:00
adityapk00
64df474646 fix: Make sure there are no duplicate rpc usernames (#783) 2023-03-29 14:26:58 -07:00
adityapk00
1025d3b38b fix: Support multiple RPC usernames (#782) 2023-03-29 14:14:24 -07:00
adityapk00
28f197624b chore: shift timing of sync job (#781) 2023-03-29 10:18:03 -07:00
Varun Srinivasan
dbc230c173 docs: update to reflect hub-monorepo name change (#779) 2023-03-28 19:30:06 -07:00
Paul Fletcher-Hill
ce8c58520d feat: revoke UserDataAdd for fname when fid transfers (#778)
* revoke UserDataAdd for fname when fid transfers

* update comment to clarify both signeradd and signerremove messages
2023-03-28 13:14:40 -04:00
adityapk00
de25020560 fix: Refuse to startup if DB is mismatched (#774)
* fix: Refuse to startup if DB is mismatched

Fixed #771

* forgot file
2023-03-28 06:59:48 -07:00
adityapk00
58cfbb9b33 fix: Have gossip node listen on 0.0.0.0 by default (#770)
* fix: Have gossip node listen on 0.0.0.0 by default

* changeset
2023-03-28 06:48:56 -07:00
Varun Srinivasan
0826a8ff07 docs: update instructions for connecting to testnet (#772) 2023-03-27 19:28:32 -07:00
Paul Fletcher-Hill
e2f93b9d82 chore: update revoke and pruning to continue after error for a single record (#769)
* update revoke and pruning to continue after error for a single record

* apply pruning change to all stores
2023-03-27 16:28:07 -04:00
PangZhi
7750ded8ac chore: fix typo in contributing.md (#766) 2023-03-27 12:39:08 -07:00
Varun Srinivasan
2f51472cca docs(hub-nodejs): point urls to testnet hubs (#764) 2023-03-27 12:28:42 -07:00
Varun Srinivasan
92c2eadd64 chore(hubble): syncEngine used incorrect terms to refer to a hub (#763) 2023-03-26 20:12:00 -07:00
Varun Srinivasan
5f20d30c99 docs: release instructions (#762) 2023-03-26 19:38:04 -07:00
Varun Srinivasan
57c540d520 chore: release new version of packages (#761)
* chore: changelog bump to app/hubble to prep for release

* chore: don't minor bump hubble and protobufs for client changes

* chore: bump versions for publishing
@farcaster/hubble@1.0.18 @farcaster/utils@0.4.0 @farcaster/protobufs@0.1.11 @farcaster/hub-nodejs@0.6.0
2023-03-26 18:17:47 -07:00
adityapk00
048052b218 fix: Test data messages should be gossiped (#760) 2023-03-26 14:49:29 -07:00
adityapk00
f965209daa fix: Don't get recursive snapshots (#759)
* fix: Don't sync if engine is pruning

* move divergence prefix

* no timeouts
2023-03-26 13:54:54 -07:00
adityapk00
2b1ec6199a bump sync limit to 10s (#758) 2023-03-26 12:04:50 -07:00
adityapk00
55b7e7d80a chore: improve logging for failure cases (#756)
* chore: improve logging for failure cases

* 2 min timeout

* add tests

* Improve logging in merkleTrie.ts

* change shutdown order
2023-03-26 09:02:39 -07:00
adityapk00
e5cb3276c5 docs: Use SSL or Insecure clients in examples (#754)
* docs: Use SSL or Insecure clients in examples

* remove unnecessary awaits

* Remove getHubRpcClient

* changeset

* Fix changeset

* improve error message
2023-03-25 13:20:07 -07:00
adityapk00
96c73f8b9c fix: Sync stalls when peer is not responding (#755) 2023-03-25 10:08:20 -07:00
adityapk00
74588d351c feat: Dynamically recover from syncTrie corruption (#753)
* feat: Dynamically recover from syncTrie corruption

* log
2023-03-24 16:55:49 -07:00
Paul Fletcher-Hill
9307b57778 changeset version and make custom packages private (#752) 2023-03-24 17:11:47 -04:00
adityapk00
7a6599a405 fix: Attempt cleanshutdown on unexpected exceptions (#751) 2023-03-24 13:42:34 -07:00
adityapk00
7e77816045 fix: Handle errors when peer unexpectedly disconnects (#750) 2023-03-24 12:25:08 -07:00
adityapk00
111e926a45 fix: Catch any SSL errors if peer unexpectedly dies (#749) 2023-03-24 11:10:51 -07:00
Paul Fletcher-Hill
fa6cab2ce5 feat: commit one event at a time (#748)
* commit one event at a time

* ensure we end revoke iterator

* add revoke tests to stores

* improve pruning and revoking logging

* get rid of commented code

* test fname add revoke and transfer

* fix log typo
2023-03-24 13:10:04 -04:00
Shane da Silva
ffe5bf68a4 Include package to enable Node.js runtime metrics collection (#747) 2023-03-24 01:15:40 -07:00
Vincent Liao
f42e8a262b docs(hub-nodejs): add docs for utils.md (#736)
* docs: add bytes-hex docs

* add: timestamp docs

* docs: verification table, params and return

* docs: add hubresult wrapper type

* docs: clarify some examples, address nit

* update: s/hexString/byteArray

* docs: add import to toFarcasterTime
2023-03-23 22:13:52 -07:00
Varun Srinivasan
627416746b docs(hub-nodejs): fix parentCastId of CastAdd incorrectly labelled (#745) 2023-03-23 19:32:17 -07:00
Varun Srinivasan
5c7840518e fix(hubble): crash by bumping ethers to 6.2.1 (#744)
* fix: crash by bumping ethers to 6.2.1

* chore: add changeset
2023-03-23 19:19:51 -07:00
Varun Srinivasan
fd9314afea docs(hub-nodejs): more cleanups and fixes (#734)
* docs: clearly document unsafeUnwrap usage in docs

* docs: replace all instances of Buffer.from with hexStringToBytes

* docs: fix DataOptions links
2023-03-23 14:39:17 -07:00
Varun Srinivasan
1b5f6b2c1f docs(hub-nodejs): more cleanup based on user testing (#743)
* docs(hub-nodejs): fix incorrect submitMessage signature

* docs: fix broken links in examples

* docs: fix relative links not working on npm

* docs: fix stackblitz link for chron-feed

* chore: add changeset
2023-03-23 14:37:58 -07:00
Paul Fletcher-Hill
23de6e7eaf feat: move revoking messages into delayed job (#741)
* move revoking messages into delayed job

* fix imports, add changeset, add revoke tests
2023-03-23 16:08:14 -04:00
adityapk00
ed35c2d16b fix: Don't use RPC while handling gossip messages (#740) 2023-03-23 12:31:26 -07:00
adityapk00
21b9d3fae5 chore: better logging (#739) 2023-03-23 10:46:40 -07:00
adityapk00
6a0bf29f91 fix: Share dns name when gossiping contactinfo (#738)
* fix: Share dns name when gossiping contactinfo

* changeset
2023-03-23 10:08:11 -07:00
Varun Srinivasan
24519c5217 docs(hub-nodejs): small cleanups and improvements (#732)
* docs: update RPC port to 2283

* docs: add note about submitMessage rate limits

* docs: converting Message to specific types
2023-03-22 22:17:14 -07:00
Varun Srinivasan
1df9cd6bac docs(hub-nodejs): add examples for constructing casts (#731)
* docs: make configurable parameters in examples clearer

* docs: add example for constructing casts
2023-03-22 21:50:53 -07:00
Paul Fletcher-Hill
aa970d2dfe fix: prune in serial (#730)
* changeset version

* fix pruning error logging

* Revert "changeset version"

This reverts commit 144fa7071a.

* prune bug investigation
2023-03-22 23:13:44 -04:00
adityapk00
d5e6395dfd chore: Improve sync logging (#729) 2023-03-22 18:57:57 -07:00
Paul Fletcher-Hill
13c316b9bb chore: improve logging for pruning errors (#728)
* changeset version

* fix pruning error logging

* Revert "changeset version"

This reverts commit 144fa7071a.
2023-03-22 21:48:07 -04:00
adityapk00
0f6737bfc6 feat: IP based rate limiting for submitMessage RPC (#722) 2023-03-22 14:53:39 -07:00
adityapk00
3d45ccba81 chore: Change port numbers (#726) 2023-03-22 14:44:49 -07:00
adityapk00
7a2beb5f12 fix: Remove peerIDs checked into config file (#723)
* fix: Remove peerIDs checked into config file

* Change dockerfile
2023-03-22 14:30:43 -07:00
Paul Fletcher-Hill
72ca1416d6 move signer pruning before other sets (#725) 2023-03-22 17:30:22 -04:00