Git Product home page Git Product logo

education's Introduction

Education

Hyperledger education and training material

education's People

Contributors

alexandrag2254 avatar dependabot[bot] avatar p-alik avatar ryjones avatar swcurran avatar tkuhrt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

education's Issues

Not able to see sawtooth-client-default while installing sawtooth

While installing sawtooth using below command
Command: docker-compose -f sawtooth-default.yaml up

I cannot see sawtooth-client-default instead, it is showing

sawtooth-shell-default | Creating key directory: /root/ .sawtooth/keys
sawtooth-shell-default | writing file: /root/ .sawtooth/keys/root.priv
sawtooth-shell-default | writing file: /root/ .sawtooth/keys/root.pub

Thus creating a problem in exec sawtooth client default
docker exec -it sawtooth-client-default bash
getting error:
Error response from daemon: No such container sawtooth client default

running docker ps -a gives below
sawtooth-shell-default
sawtooth-settings-tp-default
sawtooth-rest-api-default
sawtooth-intkey-tp-python-default
sawtooth-xo-tp-python-default
sawtooth-validator-default

Can anyone help me to rectify this issue?

.hfc-key-store

Hi,
This is more a question then issue.
I am trying to use this material, and for .hfc-key-store, and not using docker-compose.yaml so my network credentials will not be generated automatically. Is there any way I can hard code these credentials in .hfc-key-store folder so it is good for me to debug the code without putting up the whole network?

Wrong compose version

LFS171 says you need at least 1.8.1 docker compose version but sawtooth-default.yaml uses 2.1 version

Could not find chaincode with the name 'tuna-app'

getting all tuna from database: Store path:/Users/nima/.hfc-key-store Successfully loaded user1 from persistence error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: make sure the chaincode tuna-app has been successfully instantiated and try again: could not find chaincode with name 'tuna-app' at /Users/nima/fabric/education/LFS171x/fabric-material/tuna-app/node_modules/grpc/src/node/src/client.js:554:15 Query has completed, checking results error from query = { Error: make sure the chaincode tuna-app has been successfully instantiated and try again: could not find chaincode with name 'tuna-app' at /Users/nima/fabric/education/LFS171x/fabric-material/tuna-app/node_modules/grpc/src/node/src/client.js:554:15 code: 2, metadata: Metadata { _internal_repr: {} } }

Tuna example change_holder function in controller.js trying to make too many responses.

Each time res.json({whatever:stuff}) is called headers are set and a response is sent and then your next call to do that tries to reset the headers on the response and it logs:

Failed to invoke successfully :: Error: Can't set headers after they are sent.

So maybe just generate a json thing and then send it at the end.

https://github.com/hyperledger/education/blob/5c52ec18e15c81f88a008d1ca5e7fb8553c3fac1/LFS171x/fabric-material/tuna-app/controller.js#L449-L469

Will try and make a fix and pull request shortly.

LFS171x Chapter 7 feedback discussion before I edit the markdown

Hi @tkuhrt and anyone else working on the LFS171x improvements,

Here are my suggestions for improving Chapter 7 - Introduction to Hyperledger Fabric. If anyone feels strongly about any of them, please let me know in the next couple days. I plan to work on the markdown on the weekend (Oct 6-7).

  1. Key Components and Transaction Flow > Transaction Flow (Step 4)
    Typo: The ordering service, which is made up of a cluster of orderers, does not process transactions, smart contracts, or maintains the shared ledger. → maintain

  2. Key Components and Transaction Flow > What Does the MSP Do?
    a) The diagram doesn’t describe the flow in the text. The diagram matches the text on the previous slide (Membership Service Provider (MSP)) better, so I propose to move it there.
    b) Stretch goal, if I have time: Make a flow chart that matches the flow in the text on this slide

  3. Installing Hyperledger Fabric > Installing Hyperledger Fabric Docker Images and Binaries
    I got errors following these steps. Discussion forum post by tianzhong2015 at https://courses.edx.org/courses/course-v1:LinuxFoundationX+LFS171x+3T2017/discussion/forum/i4x-LinuxFoundationX-LFS171x-course-3T_2017/threads/5b6939f8c305ad0a19000db7 indicates that we should use version 1.2.0 to avoid the errors, and that worked for me.
    I propose to change the command to 'curl -sSL https://goo.gl/6wtTN5 | bash -s 1.2.0'

  4. Installing Hyperledger Fabric > Installing Hyperledger Fabric Docker Images and Binaries
    “the blue portion in the above curl command” There is no blue portion…
    I propose to make https://goo.gl/6wtTN5 blue and make the word 'blue' blue, as has been done lower down the page.

  5. Installing Hyperledger Fabric > Installing Hyperledger Fabric Docker Images and Binaries
    I propose to change “perform the following command for each of the Docker images:” to “perform the following command for each of the Fabric docker images" because, if you just did Chapter 6, you would have all the sawtooth images too & we don't mean for them to also tag those as latest.

  6. Installing Hyperledger Fabric > Installing Hyperledger Fabric Docker Images and Binaries
    “$ docker tag hyperledger/fabric-tools:x86_64-1.0.2 hyperledger/fabric-tools:latest” I think there needs to be 2 red portions (both 'fabric-tools'), but just 1 is red.
    I propose to make the second 'fabric-tools' red.

  7. Installing Hyperledger Fabric > Installing Hyperledger Fabric
    First, the previous slide caused fabric-samples to be cloned already. Second, you should cd into fabric-samples before you do the $PWD because you want fabric-samples/bin, but you don’t even need to do that because byfn.sh takes care of it for you on line 31.
    I propose to just delete this slide entirely.

  8. Writing an Application > Getting Started (Part II)
    ‘node registerAdmin.js’ fails with syntax error. Some students also filed Github issue #64 about this.
    This post has the solution: https://courses.edx.org/courses/course-v1:LinuxFoundationX+LFS171x+3T2017/discussion/forum/i4x-LinuxFoundationX-LFS171x-course-3T_2017/threads/5b472605c5264809bd00139c
    I installed nvm using the instructions on the nvm github page README at https://github.com/creationix/nvm
    Then I did ‘nvm install v8.9.0’, as recommended by the discussion post
    Then I did ‘npm install’ again in the tuna-app directory, but got warnings about high risk vulnerabilities, so I ran the commands recommended in the warnings:

  • npm I npm@latest -g
  • npm install
  • npm audit fix
  • did ‘npm install’ again & just low risk vulnerabilities remaining. Was able to continue with the exercise from here.
    I propose to add to add another Troubleshooting section with the suggestion that you might need v8.9.0 and give the pointer to the nvm repo to install nvm, 'nvm install v8.9.0' and repeat 'npm install'

Migrate "Welcome & Introduction" from EdX to Markdown

As part of our effort to create a second revision of the LFS171x EdX course, migrate the chapter "Welcome & Introduction" to a markdown file located at ./LFS171x/docs/welcome-intro.md in the import-edx-content branch.

@tkuhrt : Please add "edx-migration" label & assign this issue to me. First step to closing issue #74 .

Migrate "Technical Requirements" from EdX to Markdown

As part of our effort to create a second revision of the LFS171x EdX course, migrate the chapter "Technical Requirements" to a markdown file located at ./LFS171x/docs/technical-requirements.md in the import-edx-content branch.

Is there a way to persist the Sawtooth state?

When I shutdown the Sawtooth docker container, I lose all the data added to the blockchain.

Can I shutdown the docker container and persist the state of the Sawtooth blockchain to disk so that when I re-launch the docker container I get the blockchain state again?

Issue with Fabric Tuna application on Linux

When I change a Tuna Holder, the blockchain seems to be updated with the new information, however the terminal displays this :

The transaction has been committed on peer localhost:7053
Send transaction promise and event listener promise have completed
Successfully sent transaction to the orderer.
Successfully committed the change to the ledger by the peer
Failed to invoke successfully :: Error: Can't set headers after they are sent.
(node:14045) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: Can't set headers after they are sent.

Any idea about this error ? Thanks in advance !

ScannerError (eDx course Sawtooth exercise)

Following the instructions from Chapter 6. > Starting Hyperledger Sawtooth I've dowloaded sawtooth-default.yaml, changed directory and tried to run docker command. Then I've stuck with an error:

yaml.scanner.ScannerError: mapping values are not allowed here in "./sawtooth-default.yaml", line 381, column 24

Do you have any idea how to solve this one?

Loaded batch injectors: #Sawtooth

I am trying to install sawtooth 0.8 but I am strucked after using $ docker-compose -f sawtooth-default.yaml up cmd:

sawtooth-validator-default | [2018-04-17 06:40:32.532 INFO publisher] Now building on top of block: 864fa9ac(0, S:5f0aff2b, P:00000000)
sawtooth-validator-default | [2018-04-17 06:40:32.537 DEBUG publisher] Loaded batch injectors:
[]

thanks in advance

Cannot start node registerAdmin.js

running below command from education/LFS171x/fabric-material/tuna-app getting error.
node registerAdmin.js

module.js:471
throw err;
^

Error: Cannot find module 'fabric-client'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (/home/suhas/Hyperledger_Edu/education/LFS171x/fabric-material/tuna-app/registerAdmin.js:12:21)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)

How to manage role based access in Chaincode

I want to put restriction on uses according to their role to call chaincode functions. For eg. In tunaFish example I do not want the Regulator or Restaurateur to call a function recordTuna. So how do I manage this.
Can we restrict this access in chaincode or do we have to manange this at application side?

sawtooth-default.yaml does not load up with docker-compose

When running the following command

docker-compose -f sawtooth-default.yaml up

it gives following error,

ERROR: Version in "./sawtooth-default.yaml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a version of "2" (or "2.0") and place your service definitions under the services key, or omit the version key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/

Trouble installing Sawtooth in Lubuntu

I've tried installing Sawtooth on a linux only machine using the provided file and 2 versions of docker-compose (latest and 1.9.0) and 2 versions of lubuntu (16.04 and 18.04). I have a hard time getting past the key generation stage. Freezes here:

sawtooth-shell-default | creating key directory: /root/.sawtooth/keys
sawtooth-shell-default | writing file: /root/.sawtooth/keys/root.priv
sawtooth-shell-default | writing file: /root/.sawtooth/keys/root.pub

I have gotten to the block genesis stage once while running a VM under windows (16.04, docker-compose 1.9.0) but it also freezes when:

sawtooth-validator-default | [2018-07-24 04:01:11.789 INFO    chain] Chain controller initialized with chain head: ce6cec...b556 (block_num:0, state: c2ba282...4d72, previous_block_id: 0000000000000000)
sawtooth-validator-default | [2018-07-24 04:01:11.790 INFO    publisher] Now building on top of block: ce6cec...b556 (block_num:0, state: c2ba282...4d72, previous_block_id: 0000000000000000)

Is this an issue of using this particular distro?

npm install in fabric demo throws error : ...nan_maybe_43_inl.h:112:15: error: no member named 'ForceSet' in 'v8::Object'

macOS Sierra 10.12.3
node version : 10.4.0
npm version : 6.1.0

npm install after cloning git repository does not work.
Error log :
...
In file included from ../src/main.cpp:1:
In file included from ../../nan/nan.h:192:
../../nan/nan_maybe_43_inl.h:112:15: error: no member named 'ForceSet' in 'v8::Object'
return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs);
~~~ ^
In file included from ../src/main.cpp:1:
../../nan/nan.h:834:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
return node::MakeCallback(
^
/Users/tushargandhi/.node-gyp/10.4.0/include/node/node.h:172:50: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_EXTERN v8::Localv8::Value MakeCallback(
^
In file included from ../src/main.cpp:1:
../../nan/nan.h:849:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
return node::MakeCallback(
^
/Users/tushargandhi/.node-gyp/10.4.0/include/node/node.h:165:50: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_EXTERN v8::Localv8::Value MakeCallback(
^
In file included from ../src/main.cpp:1:
../../nan/nan.h:864:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
return node::MakeCallback(
^
/Users/tushargandhi/.node-gyp/10.4.0/include/node/node.h:158:50: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_EXTERN v8::Localv8::Value MakeCallback(
^
In file included from ../src/main.cpp:1:
../../nan/nan.h:1473:31: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
return scope.Escape(node::MakeCallback(
^
/Users/tushargandhi/.node-gyp/10.4.0/include/node/node.h:172:50: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_EXTERN v8::Localv8::Value MakeCallback(
^
4 warnings and 1 error generated.
make: *** [Release/obj.target/pkcs11/src/main.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12)
gyp ERR! System Darwin 16.4.0
gyp ERR! command "/usr/local/Cellar/node/10.4.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
gyp ERR! cwd /Users/tushargandhi/Documents/demo/fabric/education/LFS171x/fabric-material/tuna-app/node_modules/pkcs11js
gyp ERR! node -v v10.4.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: node-gyp configure build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/tushargandhi/.npm/_logs/2018-06-24T10_57_11_583Z-debug.log
npm WARN [email protected] No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: npm run build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/tushargandhi/.npm/_logs/2018-06-24T10_57_11_883Z-debug.log

output of npm ls nan

npm ls nan
[email protected] /Users/tushargandhi/Documents/demo/fabric/education/LFS171x/fabric-material/tuna-app
├─┬ UNMET DEPENDENCY [email protected]
│ └─┬ UNMET DEPENDENCY [email protected]
│ └── [email protected] deduped
└─┬ [email protected]
└── [email protected]

npm ERR! missing: [email protected], required by [email protected]
npm ERR! missing: [email protected], required by [email protected]

vue-generators/vue-form-generator#457
suggests a resolution that would force nan version 2.10.0.
How do I go about it ? This is my first attempt at fabric hands-on.

npm install Fails in ubuntu

Below is the error message.
make: Leaving directory '/home/user/Blockchain/education/LFS171x/fabric-material/tuna-app/node_modules/pkcs11js/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/user/.nvm/versions/node/v10.0.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:225:12)
gyp ERR! System Linux 4.13.0-39-generic
gyp ERR! command "/home/user/.nvm/versions/node/v10.0.0/bin/node" "/home/user/.nvm/versions/node/v10.0.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
gyp ERR! cwd /home/user/Blockchain/education/LFS171x/fabric-material/tuna-app/node_modules/pkcs11js
gyp ERR! node -v v10.0.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: node-gyp configure build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

deploying error

im trying to install network onto hyperledger fabric peers. and im getting the following error!!
please provide me the solution

maneela@ubuntu:~/tuna/tuna-network$ composer network install --card PeerAdmin@hlfv1 --archiveFile [email protected]
✖ Installing business network. This may take a minute...
Error: Error trying install business network. Error: No valid responses from any peers.
Response from attempted peer comms was an error: Error: Failed to connect before the deadline
Command failed

Migrate "Glossary" from EdX to Markdown

As part of our effort to create a second revision of the LFS171x EdX course, migrate the chapter "Glossary" to a markdown file located at ./LFS171x/docs/glossary.md in the import-edx-content branch.

LFS171x Chapter 1 feedback discussion before I edit the markdown

Hi @tkuhrt and anyone else working on the LFS171x improvements,

Here are my suggestions for improving Chapter 1. If anyone feels strongly about any of them, please let me know in the next few days. I plan to work on the markdown on Monday Sept 17, afternoon PDT.

  1. Distributed Ledger Technology (DLT) > Blockchains: “A blockchain is a peer-to-peer distributed ledger forged by consensus, combined with a system for "smart contracts" and other assistive technologies.” but then Bitcoin is the next example & Bitcoin doesn’t natively enable smart contracts. I propose to change this to “A blockchain is a peer-to-peer distributed ledger forged by consensus.” and define Smart Contracts later on, when you are talking about blockchains that do enable smart contracts.

  2. Video: The Difference between DLT and Blockchains (Brian Behlendorf): I propose to remove this video because it illustrates that the difference is muddy, instead of giving a new student a clear difference. I think we don't want to confuse students so early in the course. I saw a thread about the confusion on the Discussion forum. A better way to explain it is that a blockchain is a type of distributed ledger technology. There are other types of DLT, like a hashgraph & tangle. This can be described in text.

  3. Distributed Ledger Technology (DLT) > Blockchains (Continued): Definition of block shouldn’t be split up with mention of bitcoin concepts in between. I propose to put the bitcoin example after block is explained, for better concept flow.

  4. Distributed Ledger Technology (DLT) > Blockchains (Continued): "A block commonly consists of four pieces of metadata: ... The proof of work, also known as a nonce": I would leave out POW, since many blockchains don't use POW consensus & just give 3 pieces of metadata.

  5. Distributed Ledger Technology (DLT) > Blockchains (Continued): I propose to mention that Merkle tree root will be defined on the next page, to remove a brain speed bump for students who don't know what a Merkle tree is. -> "The Merkle tree root for the transactions included in this block. (Next slide will explain Merkle trees)"

Trouble to install it on mac using docker

I am following the tutorial to install it on mac. When I run the command

docker-compose -f sawtooth-default.yaml up

It does download the images and runs but then it stops after printing the following lines:
sawtooth-shell-default | creating key directory: /root/.sawtooth/keys
sawtooth-shell-default | writing file: /root/.sawtooth/keys/root.priv
sawtooth-shell-default | writing file: /root/.sawtooth/keys/root.pub

Anyone can point me a direction on how to get it running on my mac?

node registerAdmin.js fails

I am following the EDX course and get the error below when trying to run node registerAdmin.js. What am I doing wrong?

auridas@auridas-VirtualBox:~/Projects/education/LFS171x/fabric-material/tuna-app$ node registerAdmin.js
/home/auridas/Projects/education/LFS171x/fabric-material/tuna-app/node_modules/fabric-client/lib/Client.js:746
async _createOrUpdateChannel(request, have_envelope) {
^^^^^^^^^^^^^^^^^^^^^^

SyntaxError: Unexpected identifier
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:549:28)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
at Function.Module._load (module.js:445:3)
at Module.require (module.js:504:17)
at require (internal/module.js:20:19)
at Object. (/home/auridas/Projects/education/LFS171x/fabric-material/tuna-app/node_modules/fabric-client/index.js:25:18)

Get students to read guide on writing good discussion posts by putting incentive in the wording

Welcome & Introduction > Welcome & Introduction > Guidelines to Discussions

Many of the students who indicate they are stuck write very un-informative Discussion posts, which makes it hard to help them. (e.g. just pasting error & no info about their environment) I think if no one helps them in a short time, they will likely abandon the course.

Instead of "To learn more tips about using the Discussion boards, click here", put something like "If you get stuck, increase your chances of timely help by following this guide on writing a good Discussion post"

Transaction failed to be committed to the ledger due to ::TIMEOUT

fabcar when I do node invoke.js i am getting below error message at end
Transaction failed to be committed to the ledger due to ::TIMEOUT
but when I am running Query.js I am getting the correct output why it is happening like this any ideas
PS C:\Users\admin\fabric-samples\fabcar> node invoke.js
Store path:C:\Users\admin\fabric-samples\fabcar\hfc-key-store
(node:6988) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition
instead
Successfully loaded user1 from persistence
Assigning transaction_id: 1ec80f4fee7a7fe6b841653d59d893d29b85668f226ce9acfcef35258030ffcb
Transaction proposal was good
Successfully sent Proposal and received ProposalResponse: Status - 200, message - ""
Send transaction promise and event listener promise have completed
Successfully sent transaction to the orderer.
Transaction failed to be committed to the ledger due to ::TIMEOUT

Sawtooth-tuna - Transfer bug?

Hi,

I'm just running through the edX Blockchain for Business - An Introduction to Hyperledger Technologies course. I'm hitting what appears to be a bug when attempting to perform a transfer an asset.

When I perform the transfer, the transfer fields reset but nothing appears in the Accept Tuna section. If I refresh the browser I get the following error in the console.

bundle.js:30428 Uncaught TypeError: Cannot read property 'public' of null at transfers.filter.transfer (bundle.js:30428) at Array.filter (<anonymous>) at getState (bundle.js:30428) at Object.$.get [as success] (bundle.js:30556) at fire (bundle.js:13363) at Object.fireWith [as resolveWith] (bundle.js:13493) at done (bundle.js:19318) at XMLHttpRequest.<anonymous> (bundle.js:19560)

this is the code in question

// Populate transfer list for selected user transfers.filter(transfer => transfer.owner === this.user.public) .forEach(transfer => addAction('#transferList', transfer.asset, 'Accept'))

This is in Chrome. Using the latest repo code. Thanks.

Add link to the "how to contribute" gist to the top-level README of this repo

Since this repo doesn't have a CONTRIBUTING.md, we should do this so that potential contributors can immediately know how to get started. Right now, someone in-the-know has to tell you about the gist, which means you're missing out on potential contributors who don't know who to ask.

https://gist.github.com/tkuhrt/10211ae0a26a91a8c030d00344f7d11b

Alternatively, moving the guidelines entirely into a top-level CONTRIBUTING.md in the repo would work too.

Can't create tuan record

I can't get Create Tuna Record to work. I started the processor with the following text as the last message in the terminal: "Initializing JSON handler for Sawtooth Tuna Chain." Does that mean the processor is running? Any ideas what I can do to make this work?

Tunachain Data Control Issue

Hello. I am Lim, Hee - chan.
After studying HyperLedger Sawtooth, I came to find a Tuna-Chain Application in edX course.
I am trying to practice this application and understanding the codes.
Can I get help with some questions?

  1. Data control

In Sawtooth - Tuna Chain Application, I was looking at key create, transfer,and tuna list to see how data coming in and out.

I looked at bundle.js file and found that once the key value is stored through localStorage, the transaction related data comes in when entering the http://localhost: 8000 / api / batches address.

I was trying to do something while practicing the application.
Which is that I want to show the output such as 'create asset', 'transfer', and 'tuna list' by splitting it into several screens. (Currently the application shows everything in one screen.)
In order to proceed that, I thought I should be able to control each key data, asset data, and transaction data.
Is it only data which shows at 'http://localhost: 8000 / api / batches'?
and is it possible to deal with the data from here?

I also want to try something. Now, I am practicing an application on one computer, but I want to control like a distributed network which is that let the main computer do the key control , and user1 & user2 can manage assets and transfer them on their own networks.

Currently, when I run the application on the main computer and manage the key value, the data is saved to localStorage, so that other computers will not be able to access the key data which makes them can't do the work in same environment(means network). (I may be misunderstood.)

I am wondering If I can open the server on the main computer and let user computers view how it goes and control 'assets' and 'transfer' at each computer by user.

I would appreciate it if you give me advice or any help about my issues.

Thank you so much.

Admin not getting registered

I am not able to register the admin, and getting the following error after registeringUser.
Store path:/home/atishaya/.hfc-key-store
Failed to register: Error: Failed to get admin.... run registerAdmin.js

getting issue while running node Query.js

I was getting error like this can any one help me this one is fabcar

Store path:C:\Users\admin\fabric-samples\fabcar\hfc-key-store
(node:6016) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition
instead
Successfully loaded user1 from persistence
Query has completed, checking results
error from query = { Error: 2 UNKNOWN: access denied: channel [mychannel] creator org [Org1MSP]
at Object.exports.createStatusError (C:\Users\admin\fabric-samples\fabcar\node_modules\fabric-client\node_modules\grpc\src\common.js:87:15)
at Object.onReceiveStatus (C:\Users\admin\fabric-samples\fabcar\node_modules\fabric-client\node_modules\grpc\src\client_interceptors.js:1188:28)
at InterceptingListener._callNext (C:\Users\admin\fabric-samples\fabcar\node_modules\fabric-client\node_modules\grpc\src\client_interceptors.js:564:42)
at InterceptingListener.onReceiveStatus (C:\Users\admin\fabric-samples\fabcar\node_modules\fabric-client\node_modules\grpc\src\client_interceptors.js:614:8)
at callback (C:\Users\admin\fabric-samples\fabcar\node_modules\fabric-client\node_modules\grpc\src\client_interceptors.js:841:24)
code: 2,
metadata: Metadata { _internal_repr: {} },
details: 'access denied: channel [mychannel] creator org [Org1MSP]' }

Missing source material for course LFS170x

This repo does not contain the source of LFS170x titled "Blockchain: Understanding Its Uses and Implications".
Is feedback accepted elsewhere or can I submit issues here as well for this course?

Migrate "Introduction to Hyperledger" from EdX to Markdown

As part of our effort to create a second revision of the LFS171x EdX course, migrate the chapter "Introduction to Hyperledger" to a markdown file located at ./LFS171x/docs/introduction-to-hyperledger.md in the import-edx-content branch.

Can not Create Tuna Record. Tuna record creation time is forever.

Tuna record creation time is forever.
Tried with both
with sawtooth-default.yaml from master
and with 0.8 images from this PR #12

During the creation of the "Tuna Record" call to
http://localhost:8080/batch_status?id=3b7062802b579ace1e1e89bb1af6b37eaee521026f46a3ed1a17db70aec38307539e7bba5d525c1ef8bfd96dafef396eae4499a0d5d30b2956db9293b807b3e3&wait%22
returns:

data: [
{
id: "3b7062802b579ace1e1e89bb1af6b37eaee521026f46a3ed1a17db70aec38307539e7bba5d525c1ef8bfd96dafef396eae4499a0d5d30b2956db9293b807b3e3",
invalid_transactions: [ ],
status: "PENDING"
}
],
link: "http://localhost:8080/batch_status?id=3b7062802b579ace1e1e89bb1af6b37eaee521026f46a3ed1a17db70aec38307539e7bba5d525c1ef8bfd96dafef396eae4499a0d5d30b2956db9293b807b3e3&wait""
}

part of the log from dockers:

sawtooth-validator-default | [2017-12-30 22:17:47.925 DEBUG selector_events] Using selector: ZMQSelector
sawtooth-validator-default | [2017-12-30 22:17:47.925 INFO interconnect] Listening on tcp://eth0:8800
sawtooth-validator-default | [2017-12-30 22:17:47.925 DEBUG dispatch] Added send_message function for connection ServerThread
sawtooth-validator-default | [2017-12-30 22:17:47.926 DEBUG dispatch] Added send_last_message function for connection ServerThread
sawtooth-validator-default | [2017-12-30 22:17:47.927 INFO chain] Chain controller initialized with chain head: 42cf152c(0, S:24d4c66e, P:00000000)
sawtooth-validator-default | [2017-12-30 22:17:47.927 INFO publisher] Now building on top of block: 42cf152c(0, S:24d4c66e, P:00000000)
sawtooth-validator-default | [2017-12-30 22:17:47.929 DEBUG publisher] Loaded batch injectors: []
sawtooth-client-default | creating key directory: /root/.sawtooth/keys
sawtooth-client-default | writing file: /root/.sawtooth/keys/root.priv
sawtooth-client-default | writing file: /root/.sawtooth/keys/root.pub
sawtooth-validator-default | [2017-12-30 22:17:54.502 DEBUG interconnect] ServerThread receiving CLIENT_STATE_LIST_REQUEST message: 81 bytes
sawtooth-validator-default | [2017-12-30 22:17:54.502 DEBUG interconnect] ServerThread sending CLIENT_STATE_LIST_RESPONSE to b'bffc3624c2ef4caf'
sawtooth-validator-default | [2017-12-30 22:18:02.420 DEBUG interconnect] ServerThread receiving CLIENT_BATCH_SUBMIT_REQUEST message: 924 bytes
sawtooth-validator-default | [2017-12-30 22:18:02.422 DEBUG executor] no transaction processors registered for processor type transfer-chain: 0.0: application/json
sawtooth-validator-default | [2017-12-30 22:18:02.423 INFO executor] Waiting for transaction processor (transfer-chain, 0.0, application/json)

Migrate "What's Next" from EdX to Markdown

As part of our effort to create a second revision of the LFS171x EdX course, migrate the chapter "What's Next" to a markdown file located at ./LFS171x/docs/whats-next.md in the import-edx-content branch.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.