Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita58cb26

Browse files
committed
add success png
1 parentf4e7df1 commita58cb26

File tree

5 files changed

+13
-8
lines changed

5 files changed

+13
-8
lines changed

‎README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,3 +164,7 @@ Shell> peer chaincode invoke -o orderer.example.com:7050 -C $CHANNEL_NAME -n e
164164
Shell> peer chaincode invoke -o orderer.example.com:7050 -C$CHANNEL_NAME -n epointchaincodecommon -v 0.1 -c'{"Args":["delkv","liuwenru"]}'
165165
```
166166

167+
##四、调用结果展示
168+
169+
170+
![](https://github.com/liuwenru/FabricJavaSDKExamples/doc/img/QQ20171214-163532.png)

‎doc/img/QQ20171214-163532.png

261 KB
Loading

‎src/main/java/ijarvis/intelliq/FabricCA/FabricCAApp.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public class FabricCAApp {
1818
publicstaticCryptoSuitecs =CryptoSuite.Factory.getCryptoSuite();
1919
publicstaticChaincodeIDcid =ChaincodeID.newBuilder().setName(TestConfigure.CHAINCODENAME).setVersion(TestConfigure.CHAINCODEVERSION).build();
2020
publicstaticvoidinit(UserCAUSER)throwsCryptoException,InvalidArgumentException {
21+
//创建一个Client客户端
2122
client =HFClient.createNewInstance();
2223
client.setCryptoSuite(cs);
2324
client.setUserContext(CAUSER);
@@ -51,11 +52,6 @@ public static void updateKV(Channel channel,LedgerRecord record) throws Proposal
5152
logger.debug("response: " +payload);
5253
}
5354
}
54-
55-
56-
57-
58-
5955
/*
6056
* 实现根绝给定的Key查询数据
6157
* */
@@ -71,7 +67,6 @@ public static void querykv(Channel channel, String key) throws Exception {
7167
logger.debug("response: " +payload);
7268
}
7369
}
74-
7570
/**
7671
* 调用链码查询给定Key的历史值
7772
*/

‎src/main/java/ijarvis/intelliq/FabricCA/TestConfigure.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
packageijarvis.intelliq.FabricCA;
22

3-
//实现初始化调用Fabric-CA模块以及Fabric
3+
/**
4+
* 实现初始化调用Fabric-CA模块以及Fabric
5+
* 主要是实现加载初始化系统使用的到的一些环境变量以及通用配置等信息
6+
*/
7+
8+
9+
410

511
importorg.hyperledger.fabric.sdk.security.CryptoSuite;
612
importorg.hyperledger.fabric_ca.sdk.HFCAClient;

‎src/test/java/ijarvis/intelliq/FabricCA/FabricCATestUseCAServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public void TestEpointChainCodeUpdate() throws Exception {
5858

5959
@Test
6060
publicvoidTestEpointChainCodeQuery()throwsException{
61-
logger.debug("链码测试........向链码查询");
61+
logger.debug("链码测试........向链码查询key值");
6262
Channelchannel =FabricCAApp.client.newChannel(TestConfigure.CHANNLNAME);
6363
channel.addPeer(FabricCAApp.client.newPeer("peer",orgHashMap.get("org1").getPeerLocation("peer0org1")));
6464
channel.addOrderer(FabricCAApp.client.newOrderer("orderer",orgHashMap.get("org1").getOrdererLocation("orderer")));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp