Skip to content

hyperspace cores are not announced: hyperspace/server.js is not calling db.putNetworkConfiguration() anywhere #24

@KrishnaPG

Description

@KrishnaPG

In the server.js the networker.configure() method (required for announce) is dependent on db.listNetworkConfigurations() (see below):

hyperspace/server.js

Lines 120 to 125 in 26d6d36

async _rejoin () {
if (this.noAnnounce) return
const networkConfigurations = await this.db.listNetworkConfigurations()
for (const config of networkConfigurations) {
if (!config.announce) continue
const joinProm = this.networker.configure(config.discoveryKey, {

However, no where in the server.js file the db.putNetworkConfiguration() is called, which means the db.listNetworkConfigurations() always returns empty, thus the cores are not announced.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions