Commit Graph

1087 Commits

Author SHA1 Message Date
Sanjay
d6b5b32ce9 chore: release 1.7.2 (#1573) @farcaster/hubble@1.7.2 2023-11-10 16:21:22 -08:00
Sanjay
912f680f3a fix: catch and ignore provider errors during retry (#1572) 2023-11-10 15:36:37 -08:00
Sanjay
3dd49ac4a5 chore: Release 1.7.1 (#1568) @farcaster/hubble@1.7.1 @farcaster/core@0.13.1 @farcaster/hub-nodejs@0.10.17 2023-11-09 11:38:51 -08:00
Sanjay
ff5a90c7c3 fix: commit version after every migration instead of all at once (#1566)
* fix: commit version after every migration instead of all at once

* move get to migrations as well
2023-11-09 10:11:30 -08:00
Sanjay
d16cf27ac4 fix: Don't throw if unable to migrate certain rows (#1565) 2023-11-09 09:10:57 -08:00
Sanjay
11d8bed09d fix: Dont sync deprecated syncIds (#1564) 2023-11-08 23:21:17 -08:00
Sanjay
6890969b5d chore: remove old contract references (#1563)
* chore: remove old contract references

* handle more cases where our syncTrie could be incorrect

* Add migration to delete old contract events

* changeset and fix flaky test
2023-11-08 22:32:33 -08:00
Sanjay
5199f66ea0 chore: Post migration changes (#1560)
* fix: disallow empty casts (#1555)

* fix: Fix peer check job not actually starting (#1559)

* fix: Allow syncTrie to handle names that are substrings (#1546)

* fix: Allow syncTrie to handle names that are substrings

* Add migration to delete unpadded fnames from syncTrie

* changeset
2023-11-08 16:56:54 -08:00
Sanjay
77ff79ed80 fix: Fiw watching v2 contract events (#1562) 2023-11-07 12:04:40 -08:00
Shane da Silva
9637457f86 Cut Replicator 0.2.5 (#1554) @farcaster/replicator@0.2.5 2023-10-31 18:31:09 -07:00
Shane da Silva
406de333dd fix: Consolidate to a single subscribe stream in Replicator (#1553)
We were seeing issues where events would arrive out of order when
processing two streams. To avoid this, have them be processed on the
same stream, where hubs will ensure they are emitted in order
(specifically FID registration followed by messages for the given FID).
2023-10-31 18:14:44 -07:00
Sanjay
e808a4ec5c fix: Fallback to docker-compose if docker install fails (#1552) 2023-10-31 16:01:20 -07:00
Shane da Silva
3621a9fea1 Update minimum hub-nodejs version for Replicator (#1551) 2023-10-31 15:28:16 -07:00
Shane da Silva
e9a5aec3a9 Increase default CONCURRENCY for replicator (#1550)
Since most users seem to connect to a remote hub, increase the default
concurrency.
2023-10-31 14:41:33 -07:00
Sanjay
ab6e76caf5 chore: Release 1.7 (#1547) @farcaster/hubble@1.7.0 @farcaster/hub-nodejs@0.10.16 @farcaster/core@0.13.0 @farcaster/hub-web@0.7.0 2023-10-26 16:33:42 -07:00
Cassandra Heart
3313c23244 feat: Add ContactInfoContent signing + config toggle for strict validation + StrictNoSign (#1545)
* first pass, working native signing + tests

* WAR-1064 – add configuration support and validation of contact info signing

* remove signing info from message signature validation

* add changeset

* misref

* pr feedback

* Support clean restarts on specific changes to network config

* don't terminate gossip node unless we are following default termination

* delay invocation if gossip node worker isn't started

* reduce delay to 1s, shouldn't need to exceed
2023-10-26 17:29:03 -05:00
Sanjay
f3d322274b feat: support v2 id and key registry contracts (#1526) 2023-10-24 17:58:30 -07:00
Sanjay
51c57245df chore: Release 1.6.6 (#1543) @farcaster/hubble@1.6.6 2023-10-20 13:21:12 -07:00
Sanjay
559afd0e14 fix: hubble autoupgrade should ensure dependencies and clean unused docker data (#1542)
* fix: hubble autoupgrade should ensure dependencies and clean unused docker data

* Add env var to bypass self upgrade

* Don't restart more than 5 times on failure

* Fix docker command
2023-10-20 13:07:46 -07:00
dependabot[bot]
f7effc284e chore(deps): bump @babel/traverse from 7.21.3 to 7.23.2 (#1533)
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.21.3 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-20 11:27:40 -07:00
Cassandra Heart
b47c65bb74 feat: app-specific peer scoring integration (#1539)
* WAR-1058,WAR-1059,WAR-1061 – App-specific peer scoring integration

* pr feedback

* update test
2023-10-19 17:52:53 -07:00
Sanjay
173c9d61e1 fix: Fix stale contactInfo caches on SyncEngine (#1541) 2023-10-19 17:11:32 -07:00
Shane da Silva
68844d0120 chore: Release Replicator 0.2.4 (#1540) @farcaster/replicator@0.2.4 2023-10-19 16:57:50 -07:00
Shane da Silva
24357fd52d chore: Update minimum hub-nodejs version for Replicator (#1538) 2023-10-19 16:51:11 -07:00
Sanjay
9aaef8eb7c chore: release 1.6.5 (#1536) @farcaster/hubble@1.6.5 @farcaster/hub-web@0.6.10 @farcaster/hub-nodejs@0.10.15 @farcaster/core@0.12.15 2023-10-18 21:01:12 -07:00
Sanjay
6d54786ea2 fix: prevent hub startup if protocol version is expired (#1534) 2023-10-18 19:48:13 -07:00
Sagar Dhawan
2abaa115b5 fix: add memory stats (#1531) 2023-10-18 18:04:02 -07:00
Sagar Dhawan
153da45a5b fix: Remove PubSub based PeerDiscovery (#1530)
* fix: Remove PubSub based PeerDiscovery

* fix: update Grafana dashboard for Hubble

* chore: add changeset

* chore: lint

* chore: tests

* fix: AsyncValidate ContactInfo
2023-10-18 17:18:21 -07:00
Sanjay
ec2711df33 fix: Lower seenTTL to 5 mins to reduce memory consumption (#1529) 2023-10-17 13:49:52 -07:00
Sanjay
44aa4f4556 chore: release 1.6.4 (#1523) @farcaster/hubble@1.6.4 2023-10-14 21:50:49 -07:00
Sanjay
a3e12f54c7 fix: correctly reportValid more messages and bump up seen ttl (#1522)
* fix: correctly reportValid more messages and bump up seen ttl

* changeset

* also inform gossip about invalid so caches can be cleared
2023-10-14 21:24:26 -07:00
Sanjay
c2f0761000 chore: Release 1.6.3 (#1521) @farcaster/hubble@1.6.3 @farcaster/core@0.12.14 @farcaster/hub-web@0.6.9 @farcaster/hub-nodejs@0.10.14 2023-10-14 16:30:48 -07:00
Sanjay
89ce7d2dbf fix: enable asyncValidation so we don't forward invalid messages on gossip (#1520) 2023-10-14 15:51:01 -07:00
Sanjay
5cff3ffb1a chore: Add logging around invalid gossip messages (#1519) 2023-10-14 10:46:02 -07:00
adityapk00
a0597e7f5a test: More tests for Message data_bytes (#1514) 2023-10-13 08:56:49 -05:00
adityapk00
06bb2f43de chore: Go lang example for submitMessage (#1515) 2023-10-13 08:45:27 -05:00
Shane da Silva
78eef248dd fix: Correct additional typos in replicator.sh (#1513)
Missed in 2781c2c9.
2023-10-12 10:54:44 -07:00
adityapk00
a5708f85f8 chore: remove envoy and grpc-web (#1505) 2023-10-12 12:22:56 -05:00
Shane da Silva
2781c2c902 Fix prompt for HUB_SSL in replicator.sh (#1512)
We were infinite looping because we weren't looking at the correct
value.
2023-10-12 10:20:03 -07:00
adityapk00
86bed6f5d8 chore: Calculate earliestTimestamp and numMessages on demand instead of at startup (#1506) 2023-10-12 12:12:20 -05:00
adityapk00
b518b97f96 fix: Cache numFnames and numFids (#1504) 2023-10-12 11:04:50 -05:00
adityapk00
ba86d37467 fix: Accept raw databytes if using alternate protobuf encoding (#1508) 2023-10-12 11:04:24 -05:00
Sanjay
f7e755b3a2 docs: Update examples to use on-chain signers (#1511)
* docs: Update write-data example

* Delete replicate data example

* update other examples
2023-10-11 22:43:05 -07:00
Sanjay
392f7b128d chore: Release 1.6.2 (#1503) @farcaster/hubble@1.6.2 2023-10-10 21:25:40 -07:00
Sanjay
e2ada6030b fix: Exists check should not crash the hub (#1502) 2023-10-10 16:56:36 -07:00
Sanjay
9368cbe325 chore: Release new package version (#1500) @farcaster/hub-nodejs@0.10.13 @farcaster/hub-web@0.6.8 @farcaster/core@0.12.13 2023-10-10 16:00:02 -07:00
horsefacts
f4e50b9547 fix: viem client interface, pass clients to builders (#1499)
* fix: relax PublicClient type

* fix: pass publicClients to builder

* fix: update changeset
2023-10-10 18:32:16 -04:00
Shane da Silva
6c6c959fc8 chore: Release Replicator 0.2.3 (#1498) @farcaster/replicator@0.2.3 2023-10-10 12:08:37 -07:00
Shane da Silva
87f518a654 fix: Don't backfill chain events that were already backfilled (#1497)
We had a typo in the key we were checking, which was causing issues.
2023-10-10 11:58:14 -07:00
Shane da Silva
ba546708be chore: Cut Replicator release 0.2.2 (#1496) @farcaster/replicator@0.2.2 2023-10-10 11:23:45 -07:00