Skip to content

Duplicate node entries being added to pool #1148

@Pranav0210

Description

@Pranav0210

When a new node is added to the pool of the running bcoin node repetitively, each "addnode add" command pushes the hostname to the pool.hosts.nodes[] without verifiying if it already exists in the array and duplicates are created as shown in the output below.

issue
However, on running get peerinfo, the redundant entries cannot be seen because the logic provides for checking if a peer already exists in the array.

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