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
Deprecate the MinerInfo.peer_id field
Add a field similar to endpoint to represent the API endpoint of the storage miner
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 forstorage-miner
, this field no longer has practical significance. On the other hand, the information used to represent the endpoint of thestorage-miner
borrows this field, resulting in improper expression of business semantics and making it difficult for future code maintenance.Advices
MinerInfo.peer_id
fieldendpoint
to represent the API endpoint of the storage minerAffect modules