dao-governance-framework/forum-network/public/classes/forum-network.js

15 lines
235 B
JavaScript

export class ForumNetwork {
constructor() {
this.nodes = new Map();
}
addNode(node) {
this.nodes.set(node.keyPair.publicKey, node);
return this;
}
listNodes() {
return Array.from(this.nodes.values());
}
}