2018-07-09 17:27:12 +00:00
|
|
|
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);
|
2018-07-09 17:27:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = GossipSeed;
|