We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
verifyNodeUnknown
1 parent 8d829a7 commit 8cfa22eCopy full SHA for 8cfa22e
src/p2p/Join/validate.ts
@@ -153,7 +153,7 @@ export const ALREADY_KNOWN_IP_ERROR = {
153
*
154
* If the `nodeInfo` is not already known to the network, it returns `null`.
155
*/
156
-function verifyNodeUnknown(nodeInfo: P2P.P2PTypes.P2PNode): JoinRequestResponse | null {
+export function verifyNodeUnknown(nodeInfo: P2P.P2PTypes.P2PNode): JoinRequestResponse | null {
157
if (NodeList.getByPubKeyMap().has(nodeInfo.publicKey)) {
158
/* prettier-ignore */ if (logFlags.p2pNonFatal) warn(ALREADY_KNOWN_PK_ERROR.reason)
159
return ALREADY_KNOWN_PK_ERROR
0 commit comments