-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove tls array list Signed-off-by: SamYuan1990 <[email protected]>
- Loading branch information
1 parent
b4d66f6
commit d331da6
Showing
12 changed files
with
150 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Definition of nodes | ||
peer1: &peer1 | ||
addr: localhost:7051 | ||
tls_ca_cert: ./organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp/tlscacerts/tlsca.org1.example.com-cert.pem | ||
|
||
peer2: &peer2 | ||
addr: localhost:9051 | ||
tls_ca_cert: ./organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp/tlscacerts/tlsca.org2.example.com-cert.pem | ||
|
||
orderer1: &orderer1 | ||
addr: localhost:7050 | ||
tls_ca_cert: ./organizations/ordererOrganizations/example.com/msp/tlscacerts/tlsca.example.com-cert.pem | ||
|
||
# Nodes to interact with | ||
endorsers: | ||
- *peer1 | ||
- *peer2 | ||
# we might support multi-committer in the future for more complex test scenario, | ||
# i.e. consider tx committed only if it's done on >50% of nodes. But for now, | ||
# it seems sufficient to support single committer. | ||
committer: *peer2 | ||
orderer: *orderer1 | ||
|
||
# Invocation configs | ||
channel: mychannel | ||
chaincode: basic | ||
args: | ||
- GetAllAssets | ||
mspid: Org1MSP | ||
private_key: ./organizations/peerOrganizations/org1.example.com/users/[email protected]/msp/keystore/priv_sk | ||
sign_cert: ./organizations/peerOrganizations/org1.example.com/users/[email protected]/msp/signcerts/[email protected] | ||
num_of_conn: 10 | ||
client_per_conn: 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Definition of nodes | ||
peer1: &peer1 | ||
addr: localhost:7051 | ||
tls_ca_cert: ./organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp/tlscacerts/tlsca.org1.example.com-cert.pem | ||
|
||
peer2: &peer2 | ||
addr: localhost:9051 | ||
tls_ca_cert: ./organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp/tlscacerts/tlsca.org2.example.com-cert.pem | ||
|
||
orderer1: &orderer1 | ||
addr: localhost:7050 | ||
tls_ca_cert: ./organizations/ordererOrganizations/example.com/msp/tlscacerts/tlsca.example.com-cert.pem | ||
|
||
# Nodes to interact with | ||
endorsers: | ||
- *peer1 | ||
# we might support multi-committer in the future for more complex test scenario, | ||
# i.e. consider tx committed only if it's done on >50% of nodes. But for now, | ||
# it seems sufficient to support single committer. | ||
committer: *peer2 | ||
orderer: *orderer1 | ||
|
||
# Invocation configs | ||
channel: mychannel | ||
chaincode: basic | ||
args: | ||
- GetAllAssets | ||
mspid: Org1MSP | ||
private_key: ./organizations/peerOrganizations/org1.example.com/users/[email protected]/msp/keystore/priv_sk | ||
sign_cert: ./organizations/peerOrganizations/org1.example.com/users/[email protected]/msp/signcerts/[email protected] | ||
num_of_conn: 10 | ||
client_per_conn: 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bash | ||
set -ex | ||
|
||
DIR=$PWD | ||
go build ./cmd/stupid | ||
curl -vsS https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh | bash | ||
|
||
cd ./fabric-samples/test-network | ||
echo y | ./network.sh down | ||
echo y | ./network.sh up createChannel | ||
cp -r organizations "$DIR" | ||
|
||
CONFIG_FILE=./test/configorg1andorg2.yaml | ||
|
||
if [ $1 == "ORLogic" ]; then | ||
CONFIG_FILE=./test/configselectendorser.yaml | ||
ARGS=(-ccep "OR('Org1.member','Org2.member')") | ||
fi | ||
|
||
echo y | ./network.sh deployCC "${ARGS[@]}" | ||
cd "$DIR" | ||
STUPID_LOGLEVEL=debug ./stupid $CONFIG_FILE 100 |