profile
viewpoint
Morgan Bauer MHBauer @IBM Work @IBM with @swetharepakula & @mikebrow among many others.

docker/swarm 5818

Swarm: a Docker-native clustering system

docker/leadership 135

Distributed Leader Election using docker/libkv

IBM/kube101 134

Kubernetes 101 content

docker/go-connections 126

Utility package to work with network connections

cloudviz/agentless-system-crawler 96

A tool to crawl systems like crawlers for the web

docker/go-units 91

Parse and print size and time units in human-readable format

docker/swarm-library-image 28

Docker Official Image packaging for Swarm

CommitCommentEvent

startedcuelang/cue

started time in 8 days

PR opened swetharepakula/Fabric101Workshop

use 2.0 images for 2.0 demo

without specifying these will use docker LATEST which could be any tag

Signed-off-by: Morgan Bauer mbauer@us.ibm.com

+4 -4

0 comment

1 changed file

pr created time in 9 days

create barnchMHBauer/Fabric101Workshop

branch : hardcode-fabric-images

created branch time in 9 days

push eventMHBauer/fabric-chaincode-evm

Morgan Bauer

commit sha c0fabeaddadf3a655446ddf5bdde577f8a932e4c

FAB-14068 filter creation and retrieval methods Implement the EthService methods: - NewBlockFilter - GetFilterLogs - GetFilterChanges FilterID object for consistent parsing of input arguments. filterEntry Object for consistent code flow when running filters. filters time out after 5 minutes. need to move to a settable constant so we can test. Last block seen updated after executing filter. LogsFilters are the same as a deferred call to GetLogs. Add documentation for the new methods, as well as for NewFilter and UninstallFilter. Change-Id: Ie64e4cf40a63959b9275fbdec255293a6b26f5a6 Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

Morgan Bauer

commit sha 4985cac0f1ce8f13687127203d8b23fe62b60176

hack Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

push time in 9 days

pull request commenthyperledger/fabric-chaincode-evm

[FABCE-148] Update fabric dep in integration test

some maybe relevant portions from fab3 sdk logs

[o]fab3-Org1-User2]  [fabsdk/fab] 2020/02/13 21:39:11 UTC - chconfig.extractConfig -> DEBU loaded channel config: &{id:testchannel blockNumber:1 msps:[0xc0004300c0 0xc000430540] anchorPeers:[0xc000434540] orderers:[127.0.0.1:7050] versions:0xc0003dd5e0 capabilities:map[:map[V1_4_3:true] Application:map[V1_3:true] Orderer:map[V1_1:true]]}

[o]fab3-Org1-User1]  [fabsdk/fab] 2020/02/13 21:39:11 UTC - channel.orderersFromChannelCfg -> DEBU Failed to get channel Cfg orderer [127.0.0.1:7050] from ordererDict, now trying orderer Matchers in Entity Matchers
[o]fab3-Org1-User1]  [fabsdk/fab] 2020/02/13 21:39:11 UTC - fab.(*EndpointConfig).tryMatchingOrdererConfig -> DEBU Orderer [127.0.0.1:7050] did not match using matcher [(\w+):30000]
[o]fab3-Org1-User1]  [fabsdk/fab] 2020/02/13 21:39:11 UTC - fab.(*EndpointConfig).tryMatchingOrdererConfig -> DEBU Orderer [127.0.0.1:7050] did not match using matcher [(\w+).example.(\w+)]
[o]fab3-Org1-User1]  [fabsdk/fab] 2020/02/13 21:39:11 UTC - channel.orderersFromChannelCfg -> DEBU Found matching ordererConfig from entity Matchers for channel Cfg Orderer [127.0.0.1:7050]

will try to roll back and see what it looks like when it works.

swetharepakula

comment created time in 9 days

pull request commenthyperledger/fabric-chaincode-evm

[FABCE-148] Update fabric dep in integration test

e2e doesn't use fab3, so the libs for e2e talking to the orderer are updated with this update, whereas fab3 is not. Could fab3 need an update like the e2e for the fabric dependencies or fabric-client-go update? Would this break compatibility with 1.4.0?

swetharepakula

comment created time in 9 days

pull request commenthyperledger/fabric-chaincode-evm

[FABCE-148] Update fabric dep in integration test

the three failing tests are failing about contacting the orderer, but the one other test that would do that, the e2e test, is not failing. going to ttry and get some debug info from both the e2e and one of the failing tests and compare.

swetharepakula

comment created time in 9 days

Pull request review commenthyperledger/fabric-chaincode-evm

[FABCE-148] Update fabric dep in integration test

 main() {     #Check if Fabric is in the gopath. Fabric needs to be in the gopath for the integration tests     if [ ! -d "${FABRIC_DIR}" ]; then         echo "Downloading Fabric Branch v1.4.0"-        git clone https://github.com/hyperledger/fabric $FABRIC_DIR --branch v1.4.0 --single-branch --depth 1+        git clone https://github.com/hyperledger/fabric $FABRIC_DIR --branch release-1.4 --single-branch --depth 1     else         FABRIC_VERSION=$(git -C ${FABRIC_DIR} describe --abbrev=0)-        if [[ ${FABRIC_VERSION} != "v1.4.0" ]]; then+        if [[ ${FABRIC_VERSION} != "v1.4.4" ]]; then

release-1.4 branch is going to float, can we check for the commit with git merge-base --is-ancestor 52e51550b0b8f08b2f3c9052e851a82c002d406f HEAD hyperledger/fabric@52e51550b0b8f08b2f3c9052e851a82c002d406f

swetharepakula

comment created time in 10 days

Pull request review commenthyperledger/fabric-chaincode-evm

[FABCE-148] Update fabric dep in integration test

 github.com/spf13/jwalterweatherman github.com/spf13/pflag # github.com/spf13/viper v1.4.0 github.com/spf13/viper+# github.com/sykesm/zap-logfmt v0.0.2

does the tool automatically make these comments?

swetharepakula

comment created time in 10 days

Pull request review commenthyperledger/fabric-chaincode-evm

[FABCE-148] Update fabric dep in integration test

 replace github.com/go-kit/kit => github.com/go-kit/kit v0.7.0 replace github.com/hyperledger/burrow => github.com/hyperledger/burrow v0.24.4  replace github.com/fsouza/go-dockerclient => github.com/fsouza/go-dockerclient v1.3.0++replace github.com/hyperledger/fabric => github.com/hyperledger/fabric v1.4.4-0.20200211223613-5eaae3a9940d

I didn't think about updating vendor here, how do you figure this out?

swetharepakula

comment created time in 10 days

pull request commenthyperledger/fabric-chaincode-evm

[FABCE-148] Update fabric dep in integration test

looking good

swetharepakula

comment created time in 10 days

create barnchMHBauer/fabric

branch : bsdtarfix

created branch time in 11 days

Pull request review commenthyperledger/fabric-chaincode-evm

Only async

+/*+Copyright IBM Corp. All Rights Reserved.++SPDX-License-Identifier: Apache-2.0+*/++package fab3++import (+	"encoding/hex"+	"strconv"+	"time"++	"github.com/pkg/errors"++	"github.com/hyperledger/fabric-chaincode-evm/fab3/types"+)++type filterEntry interface {+	LastAccessTime() time.Time+	Filter(s *ethService) ([]interface{}, error)+}++type logsFilter struct {+	logArgs         *types.GetLogsArgs+	latestBlockSeen uint64+	lastAccessTime  time.Time+}++func (f *logsFilter) LastAccessTime() time.Time {+	return f.lastAccessTime+}++func (f *logsFilter) Filter(s *ethService) ([]interface{}, error) {+	s.logger.Debug("lastblockseen before filtering", f.latestBlockSeen)+	currentLatestBlockSeen, err := s.parseBlockNum("latest")+	if err != nil {+		return nil, err+	}+	s.logger.Debug("latest blockseen", currentLatestBlockSeen)++	var l []interface{}+	if f.latestBlockSeen < currentLatestBlockSeen {

I'm not sure how I would cause this?

MHBauer

comment created time in 11 days

push eventMHBauer/fabric-chaincode-evm

Morgan Bauer

commit sha 305e15ff23bedb90d22b310fbad83cc79aced3d7

FAB-14068 filter creation and retrieval methods Implement the EthService methods: - NewBlockFilter - GetFilterLogs - GetFilterChanges FilterID object for consistent parsing of input arguments. filterEntry Object for consistent code flow when running filters. filters time out after 5 minutes. need to move to a settable constant so we can test. Last block seen updated after executing filter. LogsFilters are the same as a deferred call to GetLogs. Add documentation for the new methods, as well as for NewFilter and UninstallFilter. Change-Id: Ie64e4cf40a63959b9275fbdec255293a6b26f5a6 Signed-off-by: Morgan Bauer <mbauer@us.ibm.com> Tested-by: Morgan Bauer <mbauer@us.ibm.com>

view details

push time in 11 days

Pull request review commenthyperledger/fabric-chaincode-evm

Only async

+/*+Copyright IBM Corp. All Rights Reserved.++SPDX-License-Identifier: Apache-2.0+*/++package fab3++import (+	"encoding/hex"+	"strconv"+	"time"++	"github.com/pkg/errors"++	"github.com/hyperledger/fabric-chaincode-evm/fab3/types"+)++type filterEntry interface {+	LastAccessTime() time.Time+	Filter(s *ethService) ([]interface{}, error)+}++type logsFilter struct {+	logArgs         *types.GetLogsArgs+	latestBlockSeen uint64+	lastAccessTime  time.Time+}++func (f *logsFilter) LastAccessTime() time.Time {+	return f.lastAccessTime+}++func (f *logsFilter) Filter(s *ethService) ([]interface{}, error) {+	s.logger.Debug("lastblockseen before filtering", f.latestBlockSeen)

resolved above, I assume?

MHBauer

comment created time in 11 days

Pull request review commenthyperledger/fabric-chaincode-evm

Only async

+/*+Copyright IBM Corp. All Rights Reserved.++SPDX-License-Identifier: Apache-2.0+*/++package fab3++import (+	"encoding/hex"+	"strconv"+	"time"++	"github.com/pkg/errors"++	"github.com/hyperledger/fabric-chaincode-evm/fab3/types"+)++type filterEntry interface {+	LastAccessTime() time.Time+	Filter(s *ethService) ([]interface{}, error)+}++type logsFilter struct {+	logArgs         *types.GetLogsArgs+	latestBlockSeen uint64+	lastAccessTime  time.Time+}++func (f *logsFilter) LastAccessTime() time.Time {+	return f.lastAccessTime+}++func (f *logsFilter) Filter(s *ethService) ([]interface{}, error) {+	s.logger.Debug("lastblockseen before filtering", f.latestBlockSeen)+	currentLatestBlockSeen, err := s.parseBlockNum("latest")+	if err != nil {+		return nil, err+	}+	s.logger.Debug("latest blockseen", currentLatestBlockSeen)++	var l []interface{}+	if f.latestBlockSeen < currentLatestBlockSeen {+		var logs []types.Log+		err = s.GetLogs(nil, f.logArgs, &logs)+		if err != nil {+			return nil, errors.Wrap(err, "GetLogs call failed")+		}+		l = make([]interface{}, 0, len(logs))+		for _, v := range logs {+			l = append(l, v)+		}+	}+	// update the filter+	f.lastAccessTime = time.Now()+	f.logArgs.FromBlock = strconv.FormatUint(currentLatestBlockSeen+1, 16)

Yea, I'm not sure what I was thinking here. Very weird looking to me now.

MHBauer

comment created time in 11 days

Pull request review commenthyperledger/fabric-chaincode-evm

Only async

+/*+Copyright IBM Corp. All Rights Reserved.++SPDX-License-Identifier: Apache-2.0+*/++package fab3++import (+	"encoding/hex"+	"strconv"+	"time"++	"github.com/pkg/errors"++	"github.com/hyperledger/fabric-chaincode-evm/fab3/types"+)++type filterEntry interface {+	LastAccessTime() time.Time+	Filter(s *ethService) ([]interface{}, error)+}++type logsFilter struct {+	logArgs         *types.GetLogsArgs+	latestBlockSeen uint64+	lastAccessTime  time.Time+}++func (f *logsFilter) LastAccessTime() time.Time {+	return f.lastAccessTime+}++func (f *logsFilter) Filter(s *ethService) ([]interface{}, error) {+	s.logger.Debug("lastblockseen before filtering", f.latestBlockSeen)+	currentLatestBlockSeen, err := s.parseBlockNum("latest")+	if err != nil {+		return nil, err+	}+	s.logger.Debug("latest blockseen", currentLatestBlockSeen)++	var l []interface{}+	if f.latestBlockSeen < currentLatestBlockSeen {

test would be running the filter twice in a row?

MHBauer

comment created time in 11 days

Pull request review commenthyperledger/fabric

Add fabric-peer docker image readme

+# Quick reference++-	**Where to get Docker help**:  +	[the Docker Community Forums](https://forums.docker.com/), [the Docker Community Slack](http://dockr.ly/slack), or [Stack Overflow](https://stackoverflow.com/search?tab=newest&q=docker)++-	**Where to get Hyperledger Fabric help**:  +	[Fabric documentation](https://hyperledger-fabric.readthedocs.io/en/latest/), [Stackoverflow](https://stackoverflow.com/questions/tagged/hyperledger-fabric), or [Rocket.Chat](https://chat.hyperledger.org/channel/fabric)++-	**Where to get support**:+  The Fabric images are provided for development and test purposes. Various vendors provide+  supported offerings for production use.++-	**Architectures available**: amd64++-	**Tags available**: Architecture specific (e.g. `amd64-2.0.0`), release specific (e.g. `2.0.0`), and latest patch of minor release (e.g. `2.0`).++-	**Image Dockerfile**:  +	[Dockerfile location](https://github.com/hyperledger/fabric/blob/master/images/peer/Dockerfile)++-	**Source of this description**:  +	[Fabric github repository](https://github.com/hyperledger/fabric/blob/master/images/peer/README.md)++# What is Hyperledger Fabric?++Hyperledger Fabric is an enterprise-grade permissioned distributed ledger framework for developing solutions and applications. Its modular and versatile design satisfies a broad range of industry use cases. It offers a unique approach to consensus that enables performance at scale while preserving privacy.++# How to use this image++## Start a fabric peer++You can run a Fabric peer container as follows:++```console+$ docker run -d --publish 7051:7051 \+-v /tmp/fabric/config/peer0.org1.example.com:/etc/hyperledger/fabric \+-v /tmp/fabric/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp:/etc/hyperledger/fabric/msp \+-v /tmp/fabric/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls:/etc/hyperledger/fabric/tls \+-v /tmp/fabric/data/peer0.org1.example.com:/var/hyperledger/production \+--name peer0.org1.example.com hyperledger/fabric-peer:2.0 peer node start+```++In this example, a container will be started running the most recent 2.0.x patch for the+Hyperledger Fabric peer, using name peer0.org1.example.com, and exposing the peer's 7051 port+on the host as port 7051.++Read on for a quick primer on the configuration and data volumes. For full details, see+the [Hyperledger Fabric documentation](https://hyperledger-fabric.readthedocs.io/en/latest/).++## Configuring Fabric peer containers++Three sets of configuration information need to be provided to a Fabric peer:++- `core.yaml` configuration file+- Membership service provider (MSP) directory for peer's membership credentials+- tls directory for peer's tls credentials (if tls is configured)++Let's look at each of these configuration inputs...++### core.yaml configuration file++The peer image preconfigured environment variable `FABRIC_CFG_PATH` is used by the peer process to locate+the `core.yaml` configuration file at runtime. `FABRIC_CFG_PATH` is preset to the image directory `/etc/hyperledger/fabric`.+Inside this directory you'll find a default core.yaml configuration file with a SampleOrg organization (aka mspid) configured.++You can provide your own `core.yaml` configuration file on your host, and then mount this directory inside your peer container at `/etc/hyperledger/fabric`, thereby overriding the default peer configuration. For example, your core.yaml may+set `peer.localMspId` to your own organization's mspid.++The `docker run` command above demonstrates how to mount such a configuration directory from your host to the+peer container's `/etc/hyperledger/fabric` directory.++Alternatively, you can override individual `core.yaml` configuration properties by passing+environment variables to the peer container, for example CORE_PEER_LOCALMSPID.

should CORE_PEER_LOCALMSPID be backtick verbatim?

denyeart

comment created time in 11 days

pull request commentswetharepakula/Fabric101Workshop

add golang chaincode

probably good to show both chaincodes.

running both requires multiple orgs/multiple nodes.

fabric-samples uses byfn. We can probably add a second cli container if we want to try and run this with different chaincodes in different orgs at the same time.

what gets the most bang for the buck at the moment?

MHBauer

comment created time in 12 days

Pull request review commentswetharepakula/Fabric101Workshop

add golang chaincode

 docker exec -it cli bash 2. Package the chaincode. The chaincode has already been mounted into the peer container. You can see more details in [`docker-compose.yml`](./docker-compose.yml). ```-peer lifecycle chaincode package fabcar.tar.gz --path /opt/gopath/src/github.com/chaincode/ --lang node --label fabcar1+peer lifecycle chaincode package fabcar-js.tar.gz --path /opt/gopath/src/github.com/chaincode/javascript --lang node --label fabcar1 ```+OR

Rule #1: don't give people options.

MHBauer

comment created time in 12 days

PR opened swetharepakula/Fabric101Workshop

add golang chaincode

move go-chaincode to repo move javascript chaincode to own subdir

tested with go-chaincode + javascript app

+460 -3

0 comment

12 changed files

pr created time in 12 days

create barnchMHBauer/Fabric101Workshop

branch : polyglot-chaincode

created branch time in 12 days

pull request commentkubernetes-sigs/service-catalog

change meetings to biweekly

/lgtm

jberkhahn

comment created time in 14 days

push eventMHBauer/org-blog

Morgan Bauer

commit sha 8621e3c11c7d0a86613e63509d75b21c85ea531a

netlify build in file Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

Morgan Bauer

commit sha 76f722abfbb02c5ae6c9bb054f95d8c128d4dffb

2020 02 05 workout Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

Morgan Bauer

commit sha 8f304bcf7145d602d546b7a54030a03d2e172010

friday workout & org to netlify document

view details

push time in 15 days

delete branch MHBauer/Fabric101Workshop

delete branch : update-fabric2.0

delete time in 15 days

pull request commentswetharepakula/Fabric101Workshop

swap bootstrap script from 2.0

squashed.

I'd prefer to merge a version of 2.0 with the peer commands working and then move on to node-ifying in new changes.

I think we can talk to multi orgs but it isn't necessary to show. If we want to do it we can do that change separate from this update.

MHBauer

comment created time in 15 days

push eventMHBauer/Fabric101Workshop

Morgan Bauer

commit sha de24f4b939ba78a81f979456d06bf2f1ffbdabd8

update to 2.0 based on fabric-samples repo swap bootstrap script from 2.0 don't download the fabric-samples repo with the updated bootstrap script update fabcar artifacts from fabric-samples update readme with new lifecycle commands document sources of files update files from basic-network from fabric-samples change 1.4 text to 2.0 Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

push time in 15 days

Pull request review commentswetharepakula/Fabric101Workshop

swap bootstrap script from 2.0

 BINARIES=true  # Parse commandline args pull out # version and/or ca-version strings first-if echo $1 | grep -q '\d'; then-  VERSION=$1;shift-  if echo $1 | grep -q '\d'; then-    CA_VERSION=$1;shift-    if echo $1 | grep -q '\d'; then-      THIRDPARTY_IMAGE_VERSION=$1;shift+if [ -n "$1" ] && [ "${1:0:1}" != "-" ]; then+    VERSION=$1;shift+    if [ -n "$1" ]  && [ "${1:0:1}" != "-" ]; then+        CA_VERSION=$1;shift+        if [ -n  "$1" ] && [ "${1:0:1}" != "-" ]; then+            THIRDPARTY_IMAGE_VERSION=$1;shift+        fi     fi-  fi fi -# prior to 1.1.0 architecture was determined by uname -m-if [[ $VERSION =~ ^1\.[0]\.* ]]; then-  export FABRIC_TAG=${MARCH}-${VERSION}-  export CA_TAG=${MARCH}-${CA_VERSION}-  export THIRDPARTY_TAG=${MARCH}-${THIRDPARTY_IMAGE_VERSION}+# prior to 1.2.0 architecture was determined by uname -m+if [[ $VERSION =~ ^1\.[0-1]\.* ]]; then+    export FABRIC_TAG=${MARCH}-${VERSION}+    export CA_TAG=${MARCH}-${CA_VERSION}+    export THIRDPARTY_TAG=${MARCH}-${THIRDPARTY_IMAGE_VERSION} else-  # starting with 1.2.0, multi-arch images will be default-  : ${CA_TAG:="$CA_VERSION"}-  : ${FABRIC_TAG:="$VERSION"}-  : ${THIRDPARTY_TAG:="$THIRDPARTY_IMAGE_VERSION"}+    # starting with 1.2.0, multi-arch images will be default+    : "${CA_TAG:="$CA_VERSION"}"+    : "${FABRIC_TAG:="$VERSION"}"+    : "${THIRDPARTY_TAG:="$THIRDPARTY_IMAGE_VERSION"}" fi  BINARY_FILE=hyperledger-fabric-${ARCH}-${VERSION}.tar.gz CA_BINARY_FILE=hyperledger-fabric-ca-${ARCH}-${CA_VERSION}.tar.gz  # then parse opts-while getopts "h?db" opt; do-  case "$opt" in-    h|\?)-      printHelp-      exit 0-    ;;-    d)  DOCKER=false-    ;;-    b)  BINARIES=false-    ;;-  esac+while getopts "h?dsb" opt; do+    case "$opt" in+        h|\?)+            printHelp+            exit 0+            ;;+        d)  DOCKER=false+            ;;+        s)  SAMPLES=false+            ;;+        b)  BINARIES=false+            ;;+    esac done +if [ "$SAMPLES" == "true" ]; then+    echo+    echo "Clone hyperledger/fabric-samples repo"+    echo+    cloneSamplesRepo+fi if [ "$BINARIES" == "true" ]; then-  echo-  echo "Installing Hyperledger Fabric binaries"-  echo-  binariesInstall+    echo+    echo "Pull Hyperledger Fabric binaries"+    echo+    pullBinaries fi if [ "$DOCKER" == "true" ]; then-  echo-  echo "Installing Hyperledger Fabric docker images"-  echo-  dockerInstall+    echo+    echo "Pull Hyperledger Fabric docker images"+    echo+    pullDockerImages fi

they're hardcoded at the top, when run with no args it does the right thing. I'd prefer to leave things as close to upstream as possible so we don't have to track changes.

MHBauer

comment created time in 15 days

PR closed swetharepakula/Fabric101Workshop

install fabric-ca-client in fabcar

seems to be required on some node versions?

+1 -0

0 comment

1 changed file

MHBauer

pr closed time in 15 days

created tagswetharepakula/Fabric101Workshop

tagfabric-v1.4.1

Fabric 101

created time in 15 days

created tagMHBauer/Fabric101Workshop

tagfabric-v1.4.1

Fabric 101

created time in 15 days

pull request commentswetharepakula/Fabric101Workshop

swap bootstrap script from 2.0

No idea what the comment about nexus is.

MHBauer

comment created time in 15 days

Pull request review commentswetharepakula/Fabric101Workshop

swap bootstrap script from 2.0

 and certificates needed to talk to the peer and orderer node. docker exec -it cli bash ``` -2. Next install the chaincode. The chaincode has already been mounted into the+2. package the chaincode. The chaincode has already been mounted into the peer container. You can see more details in [`docker-compose.yml`](./docker-compose.yml). ```-peer chaincode install -n fabcar -v 1.0 -l node -p /opt/gopath/src/github.com/chaincode+peer lifecycle chaincode package fabcar.tar.gz --path /opt/gopath/src/github.com/chaincode/ --lang node --label fabcar1 ``` -3. Instantiate the chaincode. At the end of this-you should see a new container appear which is the chaincode container.+1. install the chaincode using the package.+```+peer lifecycle chaincode install fabcar.tar.gz+```+You should see a nodeenv container run to completion.++1. query the peer for the installed chain code to get the Package ID:+```+$ peer lifecycle chaincode queryinstalled+Installed chaincodes on peer:+Package ID: fabcar1:cb90821c789b3584ed7c388269a85e51997ac3042908ba380aabbc265f52af05, Label: fabcar1+```++1. approve the chaincode for running.+```+peer lifecycle chaincode approveformyorg --channelID mychannel --name fabcar --version 1 --sequence 1 --package-id fabcar1:433b167e5a9d9b3dd089ca4e4a9f757f0f2effbc1255e9a7b3a2313860a797ff+```++1. check the whether it's approved by all orgs+```+$ peer lifecycle chaincode checkcommitreadiness -C mychannel -n fabcar -v 1+Chaincode definition for chaincode 'fabcar', version '1', sequence '1' on channel 'mychannel' approval status by org:+Org1MSP: true ```-peer chaincode instantiate -n fabcar -v 1.0 -C mychannel -c '{"Args":[]}'++1. commit the chaincode ```+$ peer lifecycle chaincode commit -C mychannel -n fabcar -v 1 --sequence 1+2020-02-07 00:12:45.478 UTC [cli.lifecycle.chaincode] setOrdererClient -> INFO 001 Retrieved channel (mychannel) orderer endpoint: orderer.example.com:7050+2020-02-07 00:12:47.623 UTC [chaincodeCmd] ClientWait -> INFO 002 txid [7eea31d96ebf6949130045a83cd948bc7dd43226f0ece18c6dc787e02d97eeba] committed with status (VALID) at+```+You should see a fabcar container running.

docker ps again?

MHBauer

comment created time in 15 days

Pull request review commentswetharepakula/Fabric101Workshop

swap bootstrap script from 2.0

 # # SPDX-License-Identifier: Apache-2.0 #-export PATH=${PWD}/bin:${PWD}:$PATH

why was current directory in path?

MHBauer

comment created time in 15 days

Pull request review commentswetharepakula/Fabric101Workshop

swap bootstrap script from 2.0

 and certificates needed to talk to the peer and orderer node. docker exec -it cli bash ``` -2. Next install the chaincode. The chaincode has already been mounted into the+2. package the chaincode. The chaincode has already been mounted into the peer container. You can see more details in [`docker-compose.yml`](./docker-compose.yml). ```-peer chaincode install -n fabcar -v 1.0 -l node -p /opt/gopath/src/github.com/chaincode+peer lifecycle chaincode package fabcar.tar.gz --path /opt/gopath/src/github.com/chaincode/ --lang node --label fabcar1 ``` -3. Instantiate the chaincode. At the end of this-you should see a new container appear which is the chaincode container.+1. install the chaincode using the package.+```+peer lifecycle chaincode install fabcar.tar.gz+```+You should see a nodeenv container run to completion.++1. query the peer for the installed chain code to get the Package ID:+```+$ peer lifecycle chaincode queryinstalled+Installed chaincodes on peer:+Package ID: fabcar1:cb90821c789b3584ed7c388269a85e51997ac3042908ba380aabbc265f52af05, Label: fabcar1+```++1. approve the chaincode for running.+```+peer lifecycle chaincode approveformyorg --channelID mychannel --name fabcar --version 1 --sequence 1 --package-id fabcar1:433b167e5a9d9b3dd089ca4e4a9f757f0f2effbc1255e9a7b3a2313860a797ff+```++1. check the whether it's approved by all orgs+```+$ peer lifecycle chaincode checkcommitreadiness -C mychannel -n fabcar -v 1+Chaincode definition for chaincode 'fabcar', version '1', sequence '1' on channel 'mychannel' approval status by org:+Org1MSP: true ```-peer chaincode instantiate -n fabcar -v 1.0 -C mychannel -c '{"Args":[]}'++1. commit the chaincode ```+$ peer lifecycle chaincode commit -C mychannel -n fabcar -v 1 --sequence 1+2020-02-07 00:12:45.478 UTC [cli.lifecycle.chaincode] setOrdererClient -> INFO 001 Retrieved channel (mychannel) orderer endpoint: orderer.example.com:7050+2020-02-07 00:12:47.623 UTC [chaincodeCmd] ClientWait -> INFO 002 txid [7eea31d96ebf6949130045a83cd948bc7dd43226f0ece18c6dc787e02d97eeba] committed with status (VALID) at+```+You should see a fabcar container running.++1. ensure chaincode has been committed+```+$ peer lifecycle chaincode querycommitted -C mychannel+Committed chaincode definitions on channel 'mychannel':+Name: fabcar, Version: 1, Sequence: 1, Endorsement Plugin: escc, Validation Plugin: vscc+```++3. note: need to check when chaincode contiainer appers. is it still important to point out?+you should see a new container appear which is the chaincode container.

happens above after commit. remove this

MHBauer

comment created time in 15 days

Pull request review commentswetharepakula/Fabric101Workshop

swap bootstrap script from 2.0

 and certificates needed to talk to the peer and orderer node. docker exec -it cli bash ``` -2. Next install the chaincode. The chaincode has already been mounted into the+2. package the chaincode. The chaincode has already been mounted into the

capitalize

MHBauer

comment created time in 15 days

Pull request review commentswetharepakula/Fabric101Workshop

swap bootstrap script from 2.0

 and certificates needed to talk to the peer and orderer node. docker exec -it cli bash ``` -2. Next install the chaincode. The chaincode has already been mounted into the+2. package the chaincode. The chaincode has already been mounted into the peer container. You can see more details in [`docker-compose.yml`](./docker-compose.yml). ```-peer chaincode install -n fabcar -v 1.0 -l node -p /opt/gopath/src/github.com/chaincode+peer lifecycle chaincode package fabcar.tar.gz --path /opt/gopath/src/github.com/chaincode/ --lang node --label fabcar1 ``` -3. Instantiate the chaincode. At the end of this-you should see a new container appear which is the chaincode container.+1. install the chaincode using the package.+```+peer lifecycle chaincode install fabcar.tar.gz+```+You should see a nodeenv container run to completion.++1. query the peer for the installed chain code to get the Package ID:+```+$ peer lifecycle chaincode queryinstalled+Installed chaincodes on peer:+Package ID: fabcar1:cb90821c789b3584ed7c388269a85e51997ac3042908ba380aabbc265f52af05, Label: fabcar1+```++1. approve the chaincode for running.+```+peer lifecycle chaincode approveformyorg --channelID mychannel --name fabcar --version 1 --sequence 1 --package-id fabcar1:433b167e5a9d9b3dd089ca4e4a9f757f0f2effbc1255e9a7b3a2313860a797ff

need the package ID, but it'll change every time, not sure if we should variable it out here or leave this in as it is.

MHBauer

comment created time in 15 days

Pull request review commentswetharepakula/Fabric101Workshop

swap bootstrap script from 2.0

 Organizations:         # MSPDir is the filesystem path which contains the MSP configuration

no idea if any of these are needed. not sure how to review.

MHBauer

comment created time in 15 days

Pull request review commentswetharepakula/Fabric101Workshop

swap bootstrap script from 2.0

 PeerOrgs:     # Count: The number of user accounts _in addition_ to Admin     # ---------------------------------------------------------------------------     Users:-      Count: 1+      Count: 2

same, no idea if this is needed.

MHBauer

comment created time in 15 days

Pull request review commentswetharepakula/Fabric101Workshop

swap bootstrap script from 2.0

 and certificates needed to talk to the peer and orderer node. docker exec -it cli bash ``` -2. Next install the chaincode. The chaincode has already been mounted into the+2. package the chaincode. The chaincode has already been mounted into the peer container. You can see more details in [`docker-compose.yml`](./docker-compose.yml). ```-peer chaincode install -n fabcar -v 1.0 -l node -p /opt/gopath/src/github.com/chaincode+peer lifecycle chaincode package fabcar.tar.gz --path /opt/gopath/src/github.com/chaincode/ --lang node --label fabcar1 ``` -3. Instantiate the chaincode. At the end of this-you should see a new container appear which is the chaincode container.+1. install the chaincode using the package.

apparently these don't count as the same list, so I have to number them.

MHBauer

comment created time in 15 days

Pull request review commentswetharepakula/Fabric101Workshop

swap bootstrap script from 2.0

 to that channel. For more details take a look at [`start.sh`](./start.sh) ``` ./start.sh ```+Ensure you have 5 containers running. A peer, an orderer, a ca, couchdb, and cli.

should we mention "with docker ps"?

MHBauer

comment created time in 15 days

Pull request review commentswetharepakula/Fabric101Workshop

swap bootstrap script from 2.0

 config/ crypto-config/ fabcar/node_modules fabcar/package-lock.json+fabcar/hfc-key-store/

don't think we need this one.

MHBauer

comment created time in 15 days

Pull request review commentswetharepakula/Fabric101Workshop

swap bootstrap script from 2.0

 git clone https://github.com/swetharepakula/Fabric101Workshop by running [scripts/bootstrap.sh](scripts/bootstrap.sh). The script will download all the Fabric binaries and docker images needed for this workshop. ```-./scripts/bootstrap.sh+./scripts/bootstrap.sh -s

s flag to avoid downloading fabric-samples repo

MHBauer

comment created time in 15 days

pull request commentswetharepakula/Fabric101Workshop

swap bootstrap script from 2.0

tested with node@10

MHBauer

comment created time in 15 days

push eventMHBauer/Fabric101Workshop

Morgan Bauer

commit sha 03b3a2d5b10006dd84475eb42dbf1e02435ccd17

fixups to be merged back in Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

push time in 15 days

pull request commentswetharepakula/Fabric101Workshop

swap bootstrap script from 2.0

installation and peer interaction with chaincode works.

need to fixup the node stuff demonstrating the chaincode.

MHBauer

comment created time in 16 days

push eventMHBauer/Fabric101Workshop

Morgan Bauer

commit sha 5223e5bbbf12b2919addff0cafe0c833488b625c

fixups to be merged back in Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

push time in 16 days

Pull request review commentswetharepakula/Fabric101Workshop

swap bootstrap script from 2.0

 #  # if version not passed in, default to latest released version-export VERSION=1.4.1+VERSION=2.0.0 # if ca version not passed in, default to latest released version-export CA_VERSION=$VERSION+CA_VERSION=1.4.4 # current version of thirdparty images (couchdb, kafka and zookeeper) released-export THIRDPARTY_IMAGE_VERSION=0.4.15-export ARCH=$(echo "$(uname -s|tr '[:upper:]' '[:lower:]'|sed 's/mingw64_nt.*/windows/')-$(uname -m | sed 's/x86_64/amd64/g')")-export MARCH=$(uname -m)+THIRDPARTY_IMAGE_VERSION=0.4.18+ARCH=$(echo "$(uname -s|tr '[:upper:]' '[:lower:]'|sed 's/mingw64_nt.*/windows/')-$(uname -m | sed 's/x86_64/amd64/g')")+MARCH=$(uname -m)  printHelp() {-  echo "Usage: bootstrap.sh [<version>] [<ca_version>] [<thirdparty_version>][-d -b]"-  echo-  echo "-d - bypass docker image download"-  echo "-b - bypass download of platform-specific binaries"-  echo-  echo "e.g. bootstrap.sh 1.4.1 1.4.1 0.4.15"-  echo "would download docker images and binaries for version 1.4.0 (fabric) 1.4.0 (fabric-ca) 0.4.15 (thirdparty)"+    echo "Usage: bootstrap.sh [version [ca_version [thirdparty_version]]] [options]"+    echo+    echo "options:"+    echo "-h : this help"+    echo "-d : bypass docker image download"+    echo "-s : bypass fabric-samples repo clone"

gonna take advantage of this flag

MHBauer

comment created time in 16 days

Pull request review commentswetharepakula/Fabric101Workshop

swap bootstrap script from 2.0

 if [ "$?" -ne 0 ]; then   exit 1 fi -mv crypto-config/peerOrganizations/org1.example.com/ca/*_sk crypto-config/peerOrganizations/org1.example.com/ca/ca.org1.example.com_sk

adding comment to this

MHBauer

comment created time in 16 days

push eventMHBauer/Fabric101Workshop

Morgan Bauer

commit sha 5da6e006dfe4e3f05ebca4bfd0e7ecda768d13e7

update fabcar artifacts Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

Morgan Bauer

commit sha 9f4a41cdd83d219a9fb5bb4038229965c5e5e23b

update readme with new lifecycle commands Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

Morgan Bauer

commit sha 92f2568090405383ce283aa89e4f79ecd882bf73

document sources of files Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

Morgan Bauer

commit sha 971a42d0037cf496c0e12e02f529fe9f0312274a

update files from basic-network Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

Morgan Bauer

commit sha e2f1aca14c61555d7a70efd8e0a21682bfc01b9c

don't download the fabric-samples repo Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

push time in 16 days

push eventMHBauer/Fabric101Workshop

Morgan Bauer

commit sha 1af7d9c6dfadc78cc7dd1b970f82b488db7caef5

update readme with new lifecycle commands Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

Morgan Bauer

commit sha 76590a0e53b3c82d39c0f11c377e3273d6a72583

document sources of files Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

push time in 16 days

push eventMHBauer/Fabric101Workshop

Morgan Bauer

commit sha 95a380e7800ed552f28dcadc0da9c6ccfed21605

update fabcar artifacts Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

push time in 16 days

push eventMHBauer/Fabric101Workshop

Morgan Bauer

commit sha 0196f94b2dcee2f3dfa4f812e50aa332a6d45f45

update fabcar artifacts Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

push time in 16 days

pull request commentswetharepakula/Fabric101Workshop

swap bootstrap script from 2.0

first big difference to start is that now it downloads the fabric-samples repo as well. might want to remove or hardcode that off.

MHBauer

comment created time in 16 days

PR opened swetharepakula/Fabric101Workshop

swap bootstrap script from 2.0

didn't see a branch yet. trying to run through it and make swaps as needed.

+153 -161

0 comment

1 changed file

pr created time in 16 days

create barnchMHBauer/Fabric101Workshop

branch : update-fabric2.0

created branch time in 16 days

push eventMHBauer/org-blog

Morgan Bauer

commit sha 7d609dcb37ce29d6c386b17cb6b6a06ea33971d5

netlify build in file Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

push time in 16 days

push eventMHBauer/org-blog

Morgan Bauer

commit sha 7c337766caddd4f3433f98cd16aaf2c171ed10c7

netlify build in file Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

push time in 16 days

fork MHBauer/crev-proofs

Crev proof repository

fork in 17 days

push eventMHBauer/org-blog

Morgan Bauer

commit sha d86a61c5fcb0f5eaee8b68a3001b484acf36c0a2

I have no idea what I'm doing getting closer tho! needs pictures! Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

Morgan Bauer

commit sha 14e8e422312e86a97b062310e29593e42f8b3dda

uuids for each page Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

Morgan Bauer

commit sha cf678a4d7ea3b7aff531cded2f61ec834df976ad

monday's workout Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

Morgan Bauer

commit sha 9ccc9268da6928c890203f9a94803cf445d91ddb

basic emacs loader Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

push time in 17 days

push eventMHBauer/org-blog

Morgan Bauer

commit sha 42ec211ea815b2e0c77da393d13fb3ed40fde3b6

actually publish things until I can call emacs inside of netlify Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

Morgan Bauer

commit sha 77cd6e24188c0b65f61334b29afb6144eba4a935

basic emacs loader Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

push time in 17 days

push eventMHBauer/org-blog

Morgan Bauer

commit sha 0df01ecf696e4b8d6fd2f326482de7530b2871e0

basic emacs loader Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

push time in 17 days

push eventMHBauer/org-blog

Morgan Bauer

commit sha 94a80d7c1b12c6044c9795ecab6acd873cbc19c8

actually publish things until I can call emacs inside of netlify Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

push time in 18 days

push eventMHBauer/org-blog

Morgan Bauer

commit sha ca513060badf1af7730ffa5900d68aef4bce8557

monday's workout Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

push time in 18 days

push eventMHBauer/org-blog

Morgan Bauer

commit sha fa7f6a09ca284718b2e745068959a526dd33cf18

I have no idea what I'm doing getting closer tho! needs pictures! Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

Morgan Bauer

commit sha 330a87ce826c4d2c7191fa012f89d52efffa37c2

uuids for each page Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

push time in 18 days

startedkeycastr/keycastr

started time in 18 days

push eventMHBauer/org-blog

Morgan Bauer

commit sha 032697fe51386bd4e1b1339742adc2c9ba3eb488

I have no idea what I'm doing getting closer tho! needs pictures! Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

push time in 22 days

push eventMHBauer/org-blog

Morgan Bauer

commit sha 4084d3eb595c3c094919203edcf6acf90da65f89

I have no idea what I'm doing getting closer tho! needs pictures! Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

push time in 22 days

create barnchMHBauer/org-blog

branch : master

created branch time in 23 days

startedStevenTammen/steventammen.com

started time in 25 days

pull request commenthyperledger/fabric-chaincode-evm

Only async

should be up to date. I tried to address and resolve some of the comments from hyperledger/fabric-chaincode-evm#11

MHBauer

comment created time in a month

push eventMHBauer/fabric-chaincode-evm

Morgan Bauer

commit sha 21abecf334f96bbd97f4c020da788038b4022d8e

FAB-14068 filter creation and retrieval methods Implement the EthService methods: - NewBlockFilter - GetFilterLogs - GetFilterChanges FilterID object for consistent parsing of input arguments. filterEntry Object for consistent code flow when running filters. filters time out after 5 minutes. need to move to a settable constant so we can test. Last block seen updated after executing filter. LogsFilters are the same as a deferred call to GetLogs. Change-Id: Ie64e4cf40a63959b9275fbdec255293a6b26f5a6 Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

push time in a month

Pull request review commenthyperledger/fabric-chaincode-evm

implement async filters

 var _ = Describe("Fab3", func() { 	})  	It("implements the ethereum json rpc api for async-logs", func() {-		resp, err := sendRPCRequest(client, "eth_newFilter", proxyAddress, 37, []interface{}{})-		Expect(err).ToNot(HaveOccurred())-		rBody, err := ioutil.ReadAll(resp.Body)-		Expect(err).ToNot(HaveOccurred())-+		var err error+		var rBody []byte 		var respBody helpers.JsonRPCResponse+		var respArrayBody helpers.JsonRPCArrayResponse+		var uninstallBody helpers.JsonRPCBoolResponse++		rBody = sendRPCRequest(client, "eth_newFilter", proxyAddress, 37, []interface{}{})+ 		err = json.Unmarshal(rBody, &respBody) 		Expect(err).ToNot(HaveOccurred()) 		filterID := respBody.Result -		resp, err = sendRPCRequest(client, "eth_uninstallFilter", proxyAddress, 38, filterID)+		By("starting a newBlockFilter before creating new blocks")+		rBody = sendRPCRequest(client, "eth_newBlockFilter", proxyAddress, rand.Int(), []interface{}{})++		err = json.Unmarshal(rBody, &respBody) 		Expect(err).ToNot(HaveOccurred())-		rBody, err = ioutil.ReadAll(resp.Body)+		newBlockFilterID := respBody.Result++		By("not getting a block notification when nothing has happened")+		rBody = sendRPCRequest(client, "eth_getFilterChanges", proxyAddress, rand.Int(), newBlockFilterID)++		err = json.Unmarshal(rBody, &respArrayBody) 		Expect(err).ToNot(HaveOccurred())-		fmt.Fprintln(GinkgoWriter, string(rBody))-		var uninstallBody helpers.JsonRPCBoolResponse+		Expect(respArrayBody.Result).To(BeEmpty())++		By("successfully uninstalling the installed block filter")+		rBody = sendRPCRequest(client, "eth_uninstallFilter", proxyAddress, rand.Int(), newBlockFilterID)+ 		err = json.Unmarshal(rBody, &uninstallBody) 		Expect(err).ToNot(HaveOccurred()) 		Expect(uninstallBody.Result).To(BeTrue()) -		resp, err = sendRPCRequest(client, "eth_uninstallFilter", proxyAddress, 39, filterID)-		Expect(err).ToNot(HaveOccurred())-		rBody, err = ioutil.ReadAll(resp.Body)+		By("successfully uninstalling the installed filter")+		rBody = sendRPCRequest(client, "eth_uninstallFilter", proxyAddress, 38, filterID)++		err = json.Unmarshal(rBody, &uninstallBody) 		Expect(err).ToNot(HaveOccurred())-		fmt.Fprintln(GinkgoWriter, string(rBody))+		Expect(uninstallBody.Result).To(BeTrue())++		By("lacking presence of the installed filter")

done in #27

MHBauer

comment created time in a month

Pull request review commenthyperledger/fabric-chaincode-evm

implement async filters

 curl http://127.0.0.1:5000 -X POST -H "Content-Type:application/json" -d '{  {"jsonrpc":"2.0","result":"0x0","id":1} ```++### eth_newFilter+`eth_newFilter` takes the same arguments as `eth_getLogs`. It returns an+identifier to collect the log entries. The log filter is not run until+`eth_getFilterChanges` is called.

should be done in #27

MHBauer

comment created time in a month

Pull request review commenthyperledger/fabric-chaincode-evm

implement async filters

 curl http://127.0.0.1:5000 -X POST -H "Content-Type:application/json" -d '{  {"jsonrpc":"2.0","result":"0x0","id":1} ```++### eth_newFilter+`eth_newFilter` takes the same arguments as `eth_getLogs`. It returns an+identifier to collect the log entries. The log filter is not run until+`eth_getFilterChanges` is called.++**Example**+```+curl http://127.0.0.1:5000 -X POST -H "Content-Type:application/json" -d '{+  "jsonrpc": "2.0",+  "id": 5,+  "method": "eth_newFilter",+  "params": [{+    "toBlock": "latest",+    "address": [+      "0x6c27ec2ab7a4e81228080434d553fa198ddccfbc"+    ],+    "topics": [+      [],+      [+        "0000000000000000000000000000000000000000000000000000000000000000"+      ]+    ]+  }]+}'++{"jsonrpc":"2.0","result":"0x1","id":5}+```++### eth_newBlockFilter+`eth_newBlockFilter` creates a filter of the blocks that arrive after creation+of the filter. An identifier is returned to refer to the filter in the future.++**Example**+```+curl http://127.0.0.1:5000 -X POST -H "Content-Type:application/json" -d '{+  "jsonrpc":"2.0",+  "method": "eth_newBlockFilter",+  "id":1,+  "params":[]+}'++{"jsonrpc":"2.0","result":"0x2","id":1}+```++### eth_uninstallFilter+`eth_uninstallFilter` takes a filter identifier and forgets the associated+filter.++**Example**+```+curl http://127.0.0.1:5000 -X POST -H "Content-Type:application/json" -d '{+  "jsonrpc":"2.0",+  "method": "eth_uninstallFilter",+  "id":1,+  "params":["0x2"]+}'++{"jsonrpc":"2.0","result":true,"id":1}+```++### eth_getFilterChanges+`eth_getFilterChanges` takes a filter identifier and returns the output+associated with the filter. For new block filters, that is an array of block+hashes. For log filters, it is the log entries as if from `eth_getLogs`.

should be done in #27

MHBauer

comment created time in a month

push eventMHBauer/fabric-chaincode-evm

Morgan Bauer

commit sha 7ae76b13c61f561133c483133fa878e35ffc9261

FAB-14068 filter creation and retrieval methods Implement the EthService methods: - NewBlockFilter - GetFilterLogs - GetFilterChanges FilterID object for consistent parsing of input arguments. filterEntry Object for consistent code flow when running filters. filters time out after 5 minutes. need to move to a settable constant so we can test. Last block seen updated after executing filter. LogsFilters are the same as a deferred call to GetLogs. Change-Id: Ie64e4cf40a63959b9275fbdec255293a6b26f5a6 Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

push time in a month

delete branch swetharepakula/fabric-chaincode-evm

delete branch : fix-mock-generation

delete time in a month

PR merged hyperledger/fabric-chaincode-evm

Reviewers
[FABCE-147] Fix mock generation for fab3
  • GO111MODULE needs to be set to on for counterfeiter to generate mocks for fab3

Signed-off-by: Swetha Repakula srepaku@us.ibm.com

  • [x] Ran the basic checks: make basic-checks
  • [x] Ran the unit tests: make unit-test
  • [x] Ran the integration tests: make integration-test
  • [x] Added the associated JIRA ticket number in the commit message title
  • [x] Link to the JIRA Ticket: https://jira.hyperledger.org/browse/FABCE-147
+1 -1

1 comment

1 changed file

swetharepakula

pr closed time in a month

push eventhyperledger/fabric-chaincode-evm

Swetha Repakula

commit sha 2b037c904e99c7b965f166259c62cdbeaadfdf28

[FABCE-147] Fix mock generation for fab3 - GO111MODULE needs to be set to `on` for counterfeiter to generate mocks for fab3 Signed-off-by: Swetha Repakula <srepaku@us.ibm.com>

view details

push time in a month

push eventMHBauer/fabric-chaincode-evm

Swetha Repakula

commit sha 2b037c904e99c7b965f166259c62cdbeaadfdf28

[FABCE-147] Fix mock generation for fab3 - GO111MODULE needs to be set to `on` for counterfeiter to generate mocks for fab3 Signed-off-by: Swetha Repakula <srepaku@us.ibm.com>

view details

Morgan Bauer

commit sha b0ff61080faecc284bff26db01c12d61e7c93608

FAB-14068 filter creation and retrieval methods Implement the EthService methods: - NewBlockFilter - GetFilterLogs - GetFilterChanges FilterID object for consistent parsing of input arguments. filterEntry Object for consistent code flow when running filters. filters time out after 5 minutes. need to move to a settable constant so we can test. Last block seen updated after executing filter. LogsFilters are the same as a deferred call to GetLogs. Change-Id: Ie64e4cf40a63959b9275fbdec255293a6b26f5a6 Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

push time in a month

pull request commenthyperledger/fabric-chaincode-evm

[FABCE-147] Fix mock generation for fab3

modules strike again.

swetharepakula

comment created time in a month

pull request commenthyperledger/fabric-chaincode-evm

Only async

needs squashing and rebase on #28

MHBauer

comment created time in a month

push eventMHBauer/fabric-chaincode-evm

Morgan Bauer

commit sha 4e2e20b04db3c191f54dcec8075ba17f298f3217

logging and better tests Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

push time in a month

push eventMHBauer/fabric-chaincode-evm

Morgan Bauer

commit sha ecc8e220ebe05fca3e6f14e51ad941a2f265e79d

logging and better tests Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

push time in a month

Pull request review commenthyperledger/fabric-chaincode-evm

FABCE-48 refactor common pattern out of integration

 main() {         echo "Downloading Fabric Branch v1.4.0"         git clone https://github.com/hyperledger/fabric $FABRIC_DIR --branch v1.4.0 --single-branch --depth 1     else-        FABRIC_VERSION=$(git -C ${FABRIC_DIR} describe)

I don't understand why we're having this discussion.

MHBauer

comment created time in a month

push eventMHBauer/fabric-chaincode-evm

Morgan Bauer

commit sha de4ae53b740cfaee9f78e65105bf8a7981d1febe

fixup! FAB-14068 filter creation and retrieval methods Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

push time in a month

push eventMHBauer/fabric-chaincode-evm

Morgan Bauer

commit sha 2fdc65d6987de9e139088517cb2ea11f48df5f0c

fixup! FAB-14068 filter creation and retrieval methods Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

push time in a month

Pull request review commenthyperledger/fabric-chaincode-evm

FABCE-48 refactor common pattern out of integration

 main() {         echo "Downloading Fabric Branch v1.4.0"         git clone https://github.com/hyperledger/fabric $FABRIC_DIR --branch v1.4.0 --single-branch --depth 1     else-        FABRIC_VERSION=$(git -C ${FABRIC_DIR} describe)

It does not allow 1.4.1 if the commit for 1.4.1 is tagged.

MHBauer

comment created time in a month

pull request commenthyperledger/fabric-chaincode-evm

Only async

might not be worth the effort to split up...

MHBauer

comment created time in a month

PR opened hyperledger/fabric-chaincode-evm

Reviewers
Only async

begin of cleaned up version

I see one more split I can make with the FilterID type.

can't run counterfeiter, which prevents me from updating the types for filterLogs, which leads to some extra code.

+791 -55

0 comment

12 changed files

pr created time in a month

push eventMHBauer/fabric-chaincode-evm

Morgan Bauer

commit sha ab1a9df62118d773fd7b80662e77b518fcd76d6b

FABCE-48 refactor common pattern out of integration Move reading of http response body into byte slice into sendRPCRequest(). This still requires manually unmarshalling into the appropriate type. Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

Morgan Bauer

commit sha cbf37adacae08acee32c83845e5937032646a20d

FABCE-46 GO111MODULE=off for all tool building Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

Morgan Bauer

commit sha 337c2a898dbf99c425778e831d3285030760ee75

allow descendant branches of specific tag This change allows direct descendents of a tag to be used, allowing follow on patches of tags. Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

Morgan Bauer

commit sha 6cbd0a4bd8a77d572fd845853958b205690c3bb5

FAB-14068 filter creation and retrieval methods Implement the EthService methods: - NewBlockFilter - GetFilterLogs - GetFilterChanges FilterID object for consistent parsing of input arguments. filterEntry Object for consistent code flow when running filters. filters time out after 5 minutes. need to move to a settable constant so we can test. Last block seen updated after executing block filter. May be a little racy if called multiple times. Delegate GetFilterLogs directly to GetFilterChanges as it has the exact same behavior. LogsFilters are the same as a deferred call to GetLogs. Change-Id: Ie64e4cf40a63959b9275fbdec255293a6b26f5a6 Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

Morgan Bauer

commit sha 77251ea464c6f492d09853a8d9b3684154ba7cbf

fixup! FAB-14068 filter creation and retrieval methods Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

push time in a month

CommitCommentEvent

pull request commenthyperledger/fabric-chaincode-evm

FABCE-48 refactor common pattern out of integration

too bad. Ensquishinated.

MHBauer

comment created time in a month

push eventMHBauer/fabric-chaincode-evm

Morgan Bauer

commit sha bcc6535b3554a616876d8071b1bba3b1072e3935

FABCE-48 refactor common pattern out of integration Move reading of http response body into byte slice into sendRPCRequest(). This still requires manually unmarshalling into the appropriate type. Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

Morgan Bauer

commit sha 75a09c2b2c3cb4faff6475cbdad53cd31b956b5b

FABCE-46 GO111MODULE=off for all tool building Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

Morgan Bauer

commit sha 1c5c6d09c5beabcef69f28922781f0841bf2e8fb

allow descendant branches of specific tag This change allows direct descendents of a tag to be used, allowing follow on patches of tags. Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

push time in a month

create barnchMHBauer/fabric-chaincode-evm

branch : only-async

created branch time in a month

pull request commenthyperledger/fabric-chaincode-evm

FABCE-48 refactor common pattern out of integration

okay, can github handle fixup?

MHBauer

comment created time in a month

push eventMHBauer/fabric-chaincode-evm

Morgan Bauer

commit sha c3b070d788c10459dc4667b7af10de4567b859c6

fixup! FABCE-48 refactor common pattern out of integration Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>

view details

push time in a month

Pull request review commenthyperledger/fabric-chaincode-evm

FABCE-48 refactor common pattern out of integration

 main() {         echo "Downloading Fabric Branch v1.4.0"         git clone https://github.com/hyperledger/fabric $FABRIC_DIR --branch v1.4.0 --single-branch --depth 1     else-        FABRIC_VERSION=$(git -C ${FABRIC_DIR} describe)

I have some patches on 1.4.0 that helps it build better, this allows that, but not 1.4.1 or anything like that.

Maybe there's a better way to do it?

MHBauer

comment created time in a month

more