2016-10-15 22:41:25 +00:00
|
|
|
module.exports = function GossipSeed(endPoint, hostName) {
|
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;
|
|
|
|
Object.freeze(this);
|
2016-10-15 22:41:25 +00:00
|
|
|
};
|