@node-lightning/wire
Version:
Lightning Network Wire Protocol
21 lines • 591 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AddressIPv4 = void 0;
const Address_1 = require("./Address");
const AddressType_1 = require("./AddressType");
class AddressIPv4 extends Address_1.Address {
/**
* Represents an IPv4 address with the host and port.
*/
constructor(host, port) {
super(host, port);
}
get type() {
return AddressType_1.AddressType.IPv4;
}
toString() {
return `${this.host}:${this.port}`;
}
}
exports.AddressIPv4 = AddressIPv4;
//# sourceMappingURL=AddressIPv4.js.map