Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a58cb26

Browse files
committed
add success png
1 parent f4e7df1 commit a58cb26

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
public static CryptoSuite cs = CryptoSuite.Factory.getCryptoSuite();
1919
public static ChaincodeID cid = ChaincodeID.newBuilder().setName(TestConfigure.CHAINCODENAME).setVersion(TestConfigure.CHAINCODEVERSION).build();
2020
public static void init(User CAUSER) throws CryptoException, 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
package ijarvis.intelliq.FabricCA;
22

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

511
import org.hyperledger.fabric.sdk.security.CryptoSuite;
612
import org.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
public void TestEpointChainCodeQuery() throws Exception{
61-
logger.debug("链码测试........向链码查询");
61+
logger.debug("链码测试........向链码查询key值");
6262
Channel channel = 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)