@node-dlc/wire
Version: 
Lightning Network Wire Protocol
22 lines (21 loc) • 544 B
TypeScript
export declare enum WireErrorCode {
    nodeAnnSigFailed = 1,
    chanAnnSigFailed = 2,
    chanUpdSigFailed = 3,
    chanBadBlockHash = 4,
    chanBadBlock = 5,
    chanAnnBadTx = 6,
    chanUtxoSpent = 7,
    chanBadScript = 8,
    gossipManagerNotStarted = 101
}
/**
 * Creates an error for a wire operation and captures relevant that
 * caused the error to be emitted or thrown.
 */
export declare class WireError extends Error {
    area: string;
    code: WireErrorCode;
    data: any;
    constructor(code: WireErrorCode, data?: any);
}