Browse Source

temp;

tags/1.1.0
huanghaiquan 5 years ago
parent
commit
6954e4eea0
1 changed files with 9 additions and 2 deletions
  1. +9
    -2
      source/ledger/ledger-core/src/main/java/com/jd/blockchain/ledger/core/handles/ParticipantRegisterOperationHandle.java

+ 9
- 2
source/ledger/ledger-core/src/main/java/com/jd/blockchain/ledger/core/handles/ParticipantRegisterOperationHandle.java View File

@@ -40,11 +40,18 @@ public class ParticipantRegisterOperationHandle implements OperationHandle {
// metadata.setSetting(ledgerSetting);
// metadata.setViewId(metadata.getViewId() + 1);

//reg participant as user
dataset.getUserAccountSet().register(identityData.getAddress(), pubKey);
// //reg participant as user
// dataset.getUserAccountSet().register(identityData.getAddress(), pubKey);

//add new participant as consensus node
adminAccount.addParticipant(participantNode);
// Build UserRegisterOperation;
UserRegisterOperation userRegOp = null;//
handleContext.handle(userRegOp);

return null;
}


Loading…
Cancel
Save