Skip to content

Commit

Permalink
Merge pull request #2 from blockchain-desktop/master
Browse files Browse the repository at this point in the history
  • Loading branch information
IamChuancey authored Nov 30, 2018
2 parents ad7461c + f3b3aa0 commit 6400b58
Show file tree
Hide file tree
Showing 13 changed files with 276 additions and 466 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ node_modules
out
.eslintcache
.idea
resources/persistence/
/resources/persistence/:
/resources/key/users:
/resources/key/tx:
!.gitkeep

# fabric network
fabric/fabcar/hfc-key-store
Expand Down
14 changes: 0 additions & 14 deletions resources/key/tls/orderers/ca.crt

This file was deleted.

15 changes: 0 additions & 15 deletions resources/key/tls/peer/ca.crt

This file was deleted.

3 changes: 3 additions & 0 deletions resources/key/tx/.gitkeep
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Ignore everything in this directory
*
# Except this file !.gitkeep
130 changes: 0 additions & 130 deletions resources/key/tx/configtx.yaml

This file was deleted.

Binary file removed resources/key/tx/configtxgen
Binary file not shown.
3 changes: 3 additions & 0 deletions resources/key/users/.gitkeep
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Ignore everything in this directory
*
# Except this file !.gitkeep
3 changes: 3 additions & 0 deletions resources/persistence/.gitkeep
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Ignore everything in this directory
*
# Except this file !.gitkeep
1 change: 0 additions & 1 deletion resources/persistence/config.db

This file was deleted.

8 changes: 4 additions & 4 deletions src/components/UserLayout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ export default class UserLayout extends React.Component {
super(props);

this.state = {
peerGrpcUrl: 'grpc://localhost:7051',
peerEventUrl: 'grpc://localhost:7053',
ordererUrl: 'grpc://localhost:7050',
username: 'Org1Admin',
peerGrpcUrl: 'grpcs://139.198.122.54:7051',
peerEventUrl: 'grpcs://139.198.122.54:7053',
ordererUrl: 'grpcs://139.198.122.54:7050',
username: 'Org1',
certPath: '',
keyPath: '',
tlsPeerPath: '',
Expand Down
8 changes: 8 additions & 0 deletions src/components/content/ChannelManangeContent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,3 +160,11 @@ export default class ChannelManangeContent extends React.Component {
);
}
}
/*
* 1.显示通道,包含通道成员等信息(可简化,目前暂未在SDK找到查找通道成员的方法)
* 2.创建通道,用户可以通过客户端来制定哪些组织可加入通道, 即可通过客户端生成用户自定义的yaml文件
* (1)前端,用户添加组织,包括组织名称,MSPID, MSPDir,AnchorPeers,MSPDir即msp证书的目录
* (2)后台,通过用户所输入的,生成yaml文件,并配置好证书,后面创建通道跟现有操作保持一致
* 3.更新通道,用户可以通过更新通道来新增成员,该成员在创建通道时未定义在yaml文件内
*
* */
2 changes: 1 addition & 1 deletion src/components/content/DataContent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ export default class DataContent extends React.Component {
width="640px"
centered
>
<strong>Tx:</strong>{this.state.block[this.state.currentBlock] ? this.state.block[this.state.currentBlock][this.state.currentTransaction].tx : '1'}<br />
<strong>Tx:</strong>{this.state.block[this.state.currentBlock] ? this.state.block[this.state.currentBlock][this.state.currentTransaction].tx : ''}<br />
<strong>Creator MSP:</strong>{this.state.block[this.state.currentBlock] ? this.state.block[this.state.currentBlock][this.state.currentTransaction].creatorMSP : ''}<br />
<strong>Endorser:</strong>{this.state.block[this.state.currentBlock] ? this.state.block[this.state.currentBlock][this.state.currentTransaction].endorser : ''}<br />
<strong>Chaincode Name:</strong>{this.state.block[this.state.currentBlock] ? this.state.block[this.state.currentBlock][this.state.currentTransaction].chaincodeName : ''}<br />
Expand Down
Loading

0 comments on commit 6400b58

Please sign in to comment.