Browse Source

Fix ParticipantNodes return ID error !

tags/1.0.0
shaozhuguang 5 years ago
parent
commit
3b3ea2b64e
1 changed files with 1 additions and 8 deletions
  1. +1
    -8
      source/ledger/ledger-core/src/main/java/com/jd/blockchain/ledger/core/ParticipantCertData.java

+ 1
- 8
source/ledger/ledger-core/src/main/java/com/jd/blockchain/ledger/core/ParticipantCertData.java View File

@@ -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;
} }
} }

Loading…
Cancel
Save