Coder Social home page Coder Social logo

danintel / sawtooth-cookiejar Goto Github PK

View Code? Open in Web Editor NEW
28.0 28.0 20.0 532 KB

Simple Hyperledger Sawtooth Cookie Jar Application

License: Apache License 2.0

Python 44.48% CMake 1.95% Shell 4.19% C++ 16.51% Dockerfile 12.96% Java 12.48% Go 7.43%
application blockchain hyperledger sawtooth

sawtooth-cookiejar's People

Contributors

arsulegai avatar danintel avatar manju956 avatar raneja14 avatar rranjan3 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

Watchers

 avatar  avatar

sawtooth-cookiejar's Issues

Changing State Address

Hello Dan,

From your CookieJar example , i am trying to change the "from_key" value but keeping the namespace same as Family Name, i am not able to change the from_key value to another string - that i can encode and use. i get invalid key error - can you help?

return _hash(FAMILY_NAME.encode('utf-8'))[0:6] +
_hash(from_key.encode('utf-8'))

TRANSACTION TIMED OUT:Getting error while executing cookiejar.py bake 100

root@d044256bbb25:/project/cookiejar/pyclient# cookiejar.py bake 100 URL to send to REST API is http://rest-api:8008/batches [14:33:40 INFO connectionpool] Starting new HTTP connection (1): rest-api [14:33:40 DEBUG connectionpool] "POST /batches HTTP/1.1" 202 183 URL to send to REST API is http://rest-api:8008/batch_statuses?id=f37fd087f8cfdf73fa3a28d9773b99732c60a2a920fea10828cd4df499b10cca55dd76c086c8f4b28078a017f34734040130ed43666340fd2e72a5b4e8f4e73b&wait=10 [14:33:40 INFO connectionpool] Starting new HTTP connection (1): rest-api [14:33:50 DEBUG connectionpool] "GET /batch_statuses?id=f37fd087f8cfdf73fa3a28d9773b99732c60a2a920fea10828cd4df499b10cca55dd76c086c8f4b28078a017f34734040130ed43666340fd2e72a5b4e8f4e73b&wait=10 HTTP/1.1" 200 424 Bake Response: Transaction timed out after waiting 10 seconds.
Transaction Timed our error.
Any Solution on this??

Unsubscribe from events

When I tried the code
# Unsubscribe from events
request = client_event_pb2.ClientEventsUnsubscribeRequest()

appears to be unreachable. Maybe a second function to separate the while loop and the unsubscribe function would help?

NameError: name 'traceback' is not defined

when I executing cookiejar_tp.py in dev mode it shows error

Traceback (most recent call last):
  File "cookiejar_tp.py", line 214, in <module>
    main()
  File "cookiejar_tp.py", line 210, in main
    traceback.print_exc(file=sys.stderr)
NameError: name 'traceback' is not defined

traceback and sys should import on top of the file

import traceback
import sys

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.