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.');
|
2016-10-15 22:41:25 +00:00
|
|
|
Object.defineProperties(this, {
|
|
|
|
endPoint: {
|
|
|
|
enumerable: true,
|
|
|
|
value: endPoint
|
|
|
|
},
|
|
|
|
hostName: {
|
|
|
|
enumerable: true,
|
|
|
|
value: hostName
|
|
|
|
}
|
|
|
|
});
|
|
|
|
};
|