diff --git a/apps/hubble/src/network/p2p/connectionFilter.ts b/apps/hubble/src/network/p2p/connectionFilter.ts index a0e487d0d9..2230b856a9 100644 --- a/apps/hubble/src/network/p2p/connectionFilter.ts +++ b/apps/hubble/src/network/p2p/connectionFilter.ts @@ -20,9 +20,9 @@ export class ConnectionFilter implements ConnectionGater { private allowedPeers: string[] | undefined; private deniedPeers: string[]; - constructor(addrs: string[] | undefined, deiniedPeers: string[] | undefined) { + constructor(addrs: string[] | undefined, deniedPeers: string[] | undefined) { this.allowedPeers = addrs; - this.deniedPeers = deiniedPeers ?? []; + this.deniedPeers = deniedPeers ?? []; } updateAllowedPeers(addrs: string[] | undefined) { diff --git a/apps/hubble/src/network/sync/merkleTrie.test.ts b/apps/hubble/src/network/sync/merkleTrie.test.ts index 04b2851be4..bc04f819f1 100644 --- a/apps/hubble/src/network/sync/merkleTrie.test.ts +++ b/apps/hubble/src/network/sync/merkleTrie.test.ts @@ -224,7 +224,7 @@ describe("MerkleTrie", () => { const rootHash = await trie.rootHash(); // Unload the trie - await trie.unloadChidrenAtRoot(); + await trie.unloadChildrenAtRoot(); // Expect the root hash to be the same expect(await trie.rootHash()).toEqual(rootHash); @@ -485,7 +485,7 @@ describe("MerkleTrie", () => { const rootHash = await trie.rootHash(); // Unload all the children of the first node - await trie.unloadChidrenAtRoot(); + await trie.unloadChildrenAtRoot(); // Now try deleting syncId1 expect(await trie.delete(syncId1)).toBeTruthy(); @@ -641,7 +641,7 @@ describe("MerkleTrie", () => { const trie = await trieWithIds([1665182332, 1665182343, 1665182345]); // Unload all the children of the first node - await trie.unloadChidrenAtRoot(); + await trie.unloadChildrenAtRoot(); let values = await trie.getAllValues(new Uint8Array(Buffer.from("16651823"))); expect(values?.length).toEqual(3); diff --git a/apps/hubble/src/network/sync/merkleTrie.ts b/apps/hubble/src/network/sync/merkleTrie.ts index f21f73f9bd..6fc60434dc 100644 --- a/apps/hubble/src/network/sync/merkleTrie.ts +++ b/apps/hubble/src/network/sync/merkleTrie.ts @@ -378,7 +378,7 @@ class MerkleTrie { return await rsMerkleTrieRootHash(this._rustTrie); } - public async unloadChidrenAtRoot(): Promise { + public async unloadChildrenAtRoot(): Promise { return await rsMerkleTrieUnloadChildren(this._rustTrie); } @@ -388,7 +388,7 @@ class MerkleTrie { } public async commitToDb(): Promise { - return await this.unloadChidrenAtRoot(); + return await this.unloadChildrenAtRoot(); } } diff --git a/apps/hubble/src/network/sync/multiPeerSyncEngine.test.ts b/apps/hubble/src/network/sync/multiPeerSyncEngine.test.ts index 36a398498b..e88c30ced3 100644 --- a/apps/hubble/src/network/sync/multiPeerSyncEngine.test.ts +++ b/apps/hubble/src/network/sync/multiPeerSyncEngine.test.ts @@ -778,7 +778,7 @@ describe("Multi peer sync engine with streams", () => { const messageStats2 = (await syncHealthProbe.computeSyncHealthMessageStats(start, stop))._unsafeUnwrap(); - // Query is inclusive of the start time and exclusive of the stop time. We cound 150, 170, 180 on engine1 and 150, 170 on engine 2 + // Query is inclusive of the start time and exclusive of the stop time. We count 150, 170, 180 on engine1 and 150, 170 on engine 2 expect(messageStats2.primaryNumMessages).toEqual(3); expect(messageStats2.peerNumMessages).toEqual(2);