Skip to content

The original MinerInfo.peer_id field of the storage miner is no longer applicable #404

@0xbillw

Description

@0xbillw

Cause

The current version of MinerInfo.peer_id represents the ID of the storage-miner P2P node. Due to the change of data transmission protocol for storage-miner, this field no longer has practical significance. On the other hand, the information used to represent the endpoint of the storage-miner borrows this field, resulting in improper expression of business semantics and making it difficult for future code maintenance.

Advices

  1. Deprecate the MinerInfo.peer_id field
  2. Add a field similar to endpoint to represent the API endpoint of the storage miner

Affect modules

  1. cess
  2. cess-miner
  3. cess-go-sdk
  4. other downside modules

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions