Skip to content

Instantly share code, notes, and snippets.

View christo4ferris's full-sized avatar

Christopher Ferris christo4ferris

View GitHub Profile
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
@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)
#!/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
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
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
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$ 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)