UpdateSminerPeerId

This is the interface for storage miners to update their peer id.

// UpdateSminerPeerId update peer id for storage miner
//
//   - peerid: peer id
//
// Return:
//   - string: block hash
//   - error: error message
func (c *ChainClient) UpdateSminerPeerId(peerid PeerId) (string, error)

For example code, please refer to update.go

Last updated