| @@ -12,7 +12,6 @@ import com.jd.blockchain.ledger.ParticipantNode; | |||||
| public class ParticipantCertData implements ParticipantNode { | public class ParticipantCertData implements ParticipantNode { | ||||
| private int id; | private int id; | ||||
| private String address; | private String address; | ||||
| private String name; | private String name; | ||||
| private PubKey pubKey; | private PubKey pubKey; | ||||
| @@ -21,6 +20,7 @@ public class ParticipantCertData implements ParticipantNode { | |||||
| } | } | ||||
| public ParticipantCertData(ParticipantNode participantNode) { | public ParticipantCertData(ParticipantNode participantNode) { | ||||
| this.id = participantNode.getId(); | |||||
| this.address = participantNode.getAddress(); | this.address = participantNode.getAddress(); | ||||
| this.name = participantNode.getName(); | this.name = participantNode.getName(); | ||||
| this.pubKey = participantNode.getPubKey(); | this.pubKey = participantNode.getPubKey(); | ||||
| @@ -31,8 +31,6 @@ public class ParticipantCertData implements ParticipantNode { | |||||
| this.name = name; | this.name = name; | ||||
| this.pubKey = pubKey; | this.pubKey = pubKey; | ||||
| } | } | ||||
| @Override | @Override | ||||
| public String getAddress() { | public String getAddress() { | ||||
| @@ -49,16 +47,11 @@ public class ParticipantCertData implements ParticipantNode { | |||||
| return pubKey; | return pubKey; | ||||
| } | } | ||||
| public int getId() { | public int getId() { | ||||
| return id; | return id; | ||||
| } | } | ||||
| public void setId(int id) { | public void setId(int id) { | ||||
| this.id = id; | this.id = id; | ||||
| } | } | ||||
| } | } | ||||