Skip to content

Commit 9579cf4

Browse files
committed
feat(Join): export verifyNodeUnknown for testing
1 parent 65cb8f2 commit 9579cf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/p2p/Join/validate.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export const ALREADY_KNOWN_IP_ERROR = {
153153
*
154154
* If the `nodeInfo` is not already known to the network, it returns `null`.
155155
*/
156-
function verifyNodeUnknown(nodeInfo: P2P.P2PTypes.P2PNode): JoinRequestResponse | null {
156+
export function verifyNodeUnknown(nodeInfo: P2P.P2PTypes.P2PNode): JoinRequestResponse | null {
157157
if (NodeList.getByPubKeyMap().has(nodeInfo.publicKey)) {
158158
/* prettier-ignore */ if (logFlags.p2pNonFatal) warn(ALREADY_KNOWN_PK_ERROR.reason)
159159
return ALREADY_KNOWN_PK_ERROR

0 commit comments

Comments
 (0)