[DPOS] change BP to PeerID of consensus info to be same with Raft Consensus Info
@@ -127,10 +127,10 @@ func (c *Cluster) BPs() []string {
for i, bp := range c.member {
p := &struct {
Index string
- BP string
+ PeerID string
}{
Index: strconv.FormatUint(uint64(i), 10),
- BP: bp.id.Pretty(),
+ PeerID: bp.id.Pretty(),
}
m, err := json.Marshal(p)
