Commit graph

12 commits

Author SHA1 Message Date
nikhil550
0088222df5
Move high-throughput sample to go application (#364)
Signed-off-by: Nikhil Gupta <ngupta@symbridge.com>

high throughput app
2020-10-28 22:00:24 +01:00
nikhil550
d081d0cd3f
update high througput sample to use deployCC script (#353)
Signed-off-by: Nikhil Gupta <ngupta@symbridge.com>
2020-10-18 19:50:39 +02:00
nikhil550
121a44a1d1
[FAB-17460] Move High Throughput sample to test network (#112)
Signed-off-by: NIKHIL E GUPTA <negupta@us.ibm.com>

Co-authored-by: NIKHIL E GUPTA <negupta@us.ibm.com>
2020-03-20 14:23:00 +00:00
Simon Stone
ce154e044b [FAB-16310] Vendor Go dependencies in all samples
All samples that deploy Go chaincode must now vendor
their dependencies before deployment, due to changes
in FAB-5177 which stop the shim being available at
deployment time. This CR adds the command:

"GO111MODULE=on go mod vendor"

... to all scripts/readmes as appropriate.

Signed-off-by: Simon Stone <sstone1@uk.ibm.com>
Change-Id: If0a2cc3a20dc943917d8325a8905427a79eb2400
2019-08-15 11:44:00 +01:00
Simon Stone
3996db59dc [FAB-12219] abstore node -> javascript
Rename the abstore node directory as the sample code
within is JavaScript, and we are planning to add a
TypeScript version as well.

This change also requires updates to BYFN to reflect
the renamed directory.

Signed-off-by: Simon Stone <sstone1@uk.ibm.com>
Change-Id: I1cd554c6598ac7cc71e2b0c65ab541cfaa477354
2019-08-02 11:22:56 +01:00
Arnaud J Le Hors
0b12e687fb Merge "[FAB-15127] Update high throughput sample" 2019-05-28 16:37:42 +00:00
NIKHIL E GUPTA
41dca99e5a [FAB-15127] Update high throughput sample
Update high throughput sample scripts for
chaincode lifecycle

Change-Id: I8e7f9d98bb62d75a779e2767b0e165a36a700d43
Signed-off-by: NIKHIL E GUPTA <negupta@us.ibm.com>
2019-05-28 11:04:31 -04:00
Ethan Fox
b64fd45da0 [FAB-15051] delStandard() function for high-throughput
This change is to add a delStandard() function to the
high-throughput fabric sample, as well as fix a typo
in putStandard(). In addition to modifying the
chaincode, an additional bash script,
'del-traditional.sh', was created to remotely delete
a created asset from within the docker CLI in
accordance with the sample walkthrough.

This change is necessary to demonstrate the full
capability of the fabric Shim library, such that no
assets remain on the ledger that the user doesn't want

This change was tested on a local deployment of
Fabric 1.4, using the 'Basic Network' asset that
was created by Ethan Fox for internal use by the
IBM Blockchain Innovation Unit within GBS Global.

Change-Id: I34488dc3131f817563568a43f923856fecb07a5a
Signed-off-by: Ethan Fox <Ethan.Fox@ibm.com>
2019-04-04 15:13:09 -04:00
Yuki Kondo
f26477c99d [FAB-11796]high-throughput:Remove unnecessary prunesafe
fabric-samples/high-throughput is a sample Chaincode for
delta-based transaction model. When executing `update`, a new delta
for a particular variable is updated to the ledger. The sum of a
variable is updated to ledger by deleting all of its delta rows
while computing the sum. The current Chaincode has two types of
pruning functions. However, there is no difference in terms of
Fabric's transaction model.

This CR adds the following changes.
- Remove unnecessary `pruneSafe` function.
- Change the name of function from `pruneFast` to `prune`.
- Update or delete related scripts.
- Improve a related documentation.

FAB-11796 #done

Change-Id: I5daa21554e53d77b7b5081f02a2846a85ec06f9a
Signed-off-by: Yuki Kondo <yuki.kondo@hal.hitachi.com>
2019-02-15 18:27:15 +00:00
Arnaud J Le Hors
146f7bc193 [FAB-9572] Fix README to match new version of BYFN
Changed README.md to instruct user to edit byfn.sh instead
of docker-compose-cli file since this is where the standard
BFYN script is now run.
Also added missing Copyright notices.

Change-Id: Ib18afe8a23cc3874729031a82480aac5b0a2b555
Signed-off-by: Arnaud J Le Hors <lehors@us.ibm.com>
2018-04-24 18:27:10 +02:00
Zhangjiong Xuan
c9b0c62975 [FAB-6292] Fix spelling error
[FAB_6292] fix spelling error in high-throughput.

Change-Id: I6f0d3a8ccdbd3b5b0762e3f346292340862354ac
Signed-off-by: Zhangjiong Xuan <xuanzhangjiong@hyperchain.cn>
2017-09-26 15:24:26 +08:00
Alexandre Pauwels
9d70f31334 Add high-throughput example to samples
A new data storage model was implemented in the fabric-samples which allows
for high-throughput of transactions. The storage model is based on storing
deltas of a value, creating a new row for each transaction, and then merging
these deltas when the final value of the variable is required.

This concept is similar to simple integer-based CRDTs, where add or subtract
updates are constantly sent to the ledger and the merge function combines all
of these deltas into one value.

Change-Id: I60b5cdc295d4503d7d496d016bf215c78eff5710
Signed-off-by: Alexandre Pauwels <alexj.pauwels@gmail.com>
2017-09-14 09:06:37 -04:00