2020-09-14 15:29:58 +00:00
|
|
|
function GossipSeed(endPoint, hostName, hostHeader) {
|
2017-01-29 02:04:58 +00:00
|
|
|
if (typeof endPoint !== 'object' || !endPoint.host || !endPoint.port) throw new TypeError('endPoint must be have host and port properties.');
|
2017-04-16 19:51:17 +00:00
|
|
|
this.endPoint = endPoint;
|
|
|
|
this.hostName = hostName;
|
2020-09-14 15:29:58 +00:00
|
|
|
this.hostHeader = hostHeader;
|
2017-04-16 19:51:17 +00:00
|
|
|
Object.freeze(this);
|
2018-07-09 17:27:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = GossipSeed;
|