Browse Source

Fix Endpoint's Sign and Node's Sign Error !

tags/1.0.1
shaozhuguang 5 years ago
parent
commit
4f8d4e942e
1 changed files with 2 additions and 5 deletions
  1. +2
    -5
      source/tools/tools-mocker/src/main/java/com/jd/blockchain/mocker/MockerLedgerInitializer.java

+ 2
- 5
source/tools/tools-mocker/src/main/java/com/jd/blockchain/mocker/MockerLedgerInitializer.java View File

@@ -16,10 +16,7 @@ import com.jd.blockchain.tools.initializer.*;
import com.jd.blockchain.tools.initializer.LedgerInitProperties.ConsensusParticipantConfig;
import com.jd.blockchain.tools.initializer.web.LedgerInitConsensusService;
import com.jd.blockchain.tools.initializer.web.LedgerInitDecisionData;
import com.jd.blockchain.transaction.DigitalSignatureBlob;
import com.jd.blockchain.transaction.LedgerInitSettingData;
import com.jd.blockchain.transaction.TxBuilder;
import com.jd.blockchain.transaction.TxRequestBuilder;
import com.jd.blockchain.transaction.*;
import com.jd.blockchain.utils.Bytes;
import com.jd.blockchain.utils.concurrent.InvocationResult;
import com.jd.blockchain.utils.io.BytesUtils;
@@ -251,7 +248,7 @@ public class MockerLedgerInitializer implements LedgerInitProcess, LedgerInitCon
this.initTxContent = initTxBuilder.prepareContent();

// 对初始交易签名,生成当前参与者的账本初始化许可;
SignatureDigest permissionSign = TxRequestBuilder.sign(initTxContent, privKey);
SignatureDigest permissionSign = SignatureUtils.sign(initTxContent, privKey);
localPermission = new LedgerInitPermissionData(currentId, permissionSign);

this.currentId = currentId;


Loading…
Cancel
Save