Skip to content

Commit

Permalink
fix: fix testnet defaulting to no allowed peers (#1151)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjayprabhu authored Jul 16, 2023
1 parent 4d28208 commit 1d9c34a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/hubble/src/hubble.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export class Hub implements HubInterface {
private contactTimer?: NodeJS.Timer;
private rocksDB: RocksDB;
private syncEngine: SyncEngine;
private allowedPeerIds: string[] = [];
private allowedPeerIds: string[] | undefined;

private pruneMessagesJobScheduler: PruneMessagesJobScheduler;
private periodSyncJobScheduler: PeriodicSyncJobScheduler;
Expand Down Expand Up @@ -417,7 +417,7 @@ export class Hub implements HubInterface {
// );
// }

this.allowedPeerIds = this.options.allowedPeers || [];
this.allowedPeerIds = this.options.allowedPeers;
if (this.options.network === FarcasterNetwork.MAINNET) {
// Mainnet is right now resitrcited to a few peers
// Append and de-dup the allowed peers
Expand Down

0 comments on commit 1d9c34a

Please sign in to comment.