export { GoodByeReasonCode };
var GoodByeReasonCode;
(function (GoodByeReasonCode) {
    GoodByeReasonCode[GoodByeReasonCode["INBOUND_DISCONNECT"] = -1] = "INBOUND_DISCONNECT";
    GoodByeReasonCode[GoodByeReasonCode["CLIENT_SHUTDOWN"] = 1] = "CLIENT_SHUTDOWN";
    GoodByeReasonCode[GoodByeReasonCode["IRRELEVANT_NETWORK"] = 2] = "IRRELEVANT_NETWORK";
    GoodByeReasonCode[GoodByeReasonCode["ERROR"] = 3] = "ERROR";
    GoodByeReasonCode[GoodByeReasonCode["TOO_MANY_PEERS"] = 129] = "TOO_MANY_PEERS";
    GoodByeReasonCode[GoodByeReasonCode["SCORE_TOO_LOW"] = 250] = "SCORE_TOO_LOW";
    GoodByeReasonCode[GoodByeReasonCode["BANNED"] = 251] = "BANNED";
})(GoodByeReasonCode || (GoodByeReasonCode = {}));
export const GOODBYE_KNOWN_CODES = {
    "-1": "InboundDisconnect",
    0: "Unknown",
    // spec-defined codes
    1: "Client shutdown",
    2: "Irrelevant network",
    3: "Internal fault/error",
    // Teku-defined codes
    128: "Unable to verify network",
    // Lighthouse-defined codes
    129: "Client has too many peers",
    250: "Peer score too low",
    251: "Peer banned this node",
};
export { Libp2pEvent };
/** Until js-libp2p exports an enum for its events */
var Libp2pEvent;
(function (Libp2pEvent) {
    Libp2pEvent["connectionOpen"] = "connection:open";
    Libp2pEvent["connectionClose"] = "connection:close";
})(Libp2pEvent || (Libp2pEvent = {}));
//# sourceMappingURL=network.js.map