Skip to content

Instantly share code, notes, and snippets.

View christo4ferris's full-sized avatar

Christopher Ferris christo4ferris

View GitHub Profile
cbf$ make clean peer unit-tests
docker images -q hyperledger/fabric-ccenv | xargs -r docker rmi -f
xargs: illegal option -- r
usage: xargs [-0opt] [-E eofstr] [-I replstr [-R replacements]] [-J replstr]
[-L number] [-n number [-x]] [-P maxprocs] [-s size]
[utility [argument ...]]
make: [ccenv-image-clean] Error 1 (ignored)
(repeated for a number of similar commands)
cbf$ make compose
cryptogen generate --config config/cryptogen.yaml --output build/cryptogen
org1.net
2017-04-29 16:01:20.738 EDT [bccsp] GetDefault -> WARN 001 Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP.
2017-04-29 16:01:20.758 EDT [bccsp] GetDefault -> WARN 002 Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP.
2017-04-29 16:01:20.761 EDT [bccsp] GetDefault -> WARN 003 Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP.
2017-04-29 16:01:20.762 EDT [bccsp] GetDefault -> WARN 004 Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP.
2017-04-29 16:01:20.765 EDT [bccsp] GetDefault -> WARN 005 Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP.
2017-04-29 16:01:20.767 EDT [bccsp] GetDefault -> WARN 006 Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP.
2017-04-29 16:01:20.770 EDT [bccsp] GetDefault -> WARN 007 Before using BCCSP, please call InitFactories(). Fall
cbf$ ./network_setup.sh up mychanfoobar
mychanfoobar
Using cryptogen -> /Users/cbf/dev/gocode/bin/cryptogen
##########################################################
##### Generate certificates using cryptogen tool #########
##########################################################
org1.example.com
2017-05-03 10:01:07.660 EDT [bccsp] GetDefault -> WARN 001 Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP.
cbf$ make compose-up
build/bin/cryptogen generate --config config/cryptogen.yaml --output build/cryptogen
org1.net
2017-05-04 14:50:27.964 EDT [bccsp] GetDefault -> WARN 001 Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP.
2017-05-04 14:50:27.987 EDT [bccsp] GetDefault -> WARN 002 Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP.
2017-05-04 14:50:27.991 EDT [bccsp] GetDefault -> WARN 003 Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP.
2017-05-04 14:50:27.992 EDT [bccsp] GetDefault -> WARN 004 Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP.
2017-05-04 14:50:27.994 EDT [bccsp] GetDefault -> WARN 005 Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP.
2017-05-04 14:50:27.996 EDT [bccsp] GetDefault -> WARN 006 Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP.
2017-05-04 14:50:27.998 EDT [bccsp] GetDefault -> WARN 007 Before using BCCSP, please call InitFact
#!/bin/sh
echo "## $3\n$(date)\n\n" >> CHANGELOG.new
git log $1..$2 --oneline | grep -v Merge | sed -e "s/\[\(FAB-[0-9]*\)\]/\[\1\](https:\/\/jira.hyperledger.org\/browse\/\1\)/" -e "s/ \(FAB-[0-9]*\)/ \[\1\](https:\/\/jira.hyperledger.org\/browse\/\1\)/" -e "s/\([0-9|a-z]*\)/* \[\1\](https:\/\/github.com\/hyperledger\/fabric\/commit\/\1)/" >> CHANGELOG.new
echo "" >> CHANGELOG.new
cat CHANGELOG.md >> CHANGELOG.new
mv -f CHANGELOG.new CHANGELOG.md
@christo4ferris
christo4ferris / gist:49dc94fdc91c0984734ce80ce6af7de3
Created May 15, 2017 18:28
gas security scan of hyperledger/fabric v1.0.0-alpha2
Results:
[/Users/cbf/dev/gocode/src/github.com/hyperledger/fabric/bccsp/pkcs11/aeskey.go:44] - Errors unhandled. (Confidence: HIGH, Severity: LOW)
> hash.Write([]byte{0x01})
[/Users/cbf/dev/gocode/src/github.com/hyperledger/fabric/bccsp/pkcs11/aeskey.go:45] - Errors unhandled. (Confidence: HIGH, Severity: LOW)
> hash.Write(k.privKey)
And the ordererBootstrapAdmin using cert alias "bootstrapCertAlias" creates the genesis block "ordererGenesisBlock" for chain "OrdererSystemChainId" for composition "docker-compose-next-4.yml" and consensus "solo" with consortiums modification policy "/Channel/Orderer/Admins" using consortiums # steps/bootstrap_impl.py:68 1.208s
| Consortium |
And the orderer admins inspect and approve the genesis block for chain "OrdererSystemChainId" # steps/bootstrap_impl.py:97 0.000s
And the orderer admins use the genesis block for chain "OrdererSystemChainId" to configure orderers # steps/bootstrap_impl.py:101 0.000s
here's error:
And the orderer config admin "configAdminOrdererOrg0" creates a consortium "consortium1" with modification policy "/Channel/Orderer/Admins" for peer orgs who wish to form a network # steps/bootstrap_impl.py:113 0.018s
| Organization |
| peerOrg0 |
| peerOrg1 |
And user "configAdminOrdererOrg0" using cert alias "config-admin-cert" connects to deliver function on orderer "orderer0" # steps/bootstrap_impl.py:232 0.003s
Traceback (most recent call last):
File "/Users/cbf/Envs/behave_venv/lib/python2.7/site-packages/behave/model.py", line 1456, in run
match.run(runner.context)
File "/Users/cbf/Envs/behave_venv/lib/python2.7/site-packages/behave/model.py", li
@christo4ferris
christo4ferris / gist:1105f489169a950e3ab431a99f01e2d0
Last active May 19, 2017 20:54
current contributions to Hyperledger Fabric
Processed 3080 csets from 135 developers
25 employers found
A total of 3057148 lines added, 604546 removed (delta 2452602)
Developers with the most changesets
Greg Haskins 533 (17.3%)
Jason Yellick 244 (7.9%)
YACOVM 169 (5.5%)
Jim Zhang 142 (4.6%)
Kostas Christidis 92 (3.0%)
var mspdir, _ = config.GetDevMspDir()
func TestInitConfig(t *testing.T) {
type args struct {
cmdRoot string
}
tests := []struct {
name string
args args
wantErr bool