Git Product home page Git Product logo

hyperledger-distributed-transactions's Introduction

hyperledger-distributed-transactions

Transaction Shipping System to enable distributed transactions on Hyperledger Fabric

Steps to run transaction shipping system

Getting ready

  • Start your source and destination networks.
  • Navigate to a location where you want to run transaction shipping system and clone the project: git clone https://github.com/sm86/hyperledger-distributed-transactions.git
  • Open the repository : cd hyperledger-distributed-transactions/
  • Install the required dependencies : npm install
  • Start the docker container for Couch: ./setup.sh
  • Initialize the database: node app
  • verify your initialization by checking if there are 3 databases in http://localhost:5990/_utils/

Note: Make sure port 5990 is not being used. In case you need to change it, update the port in setup.sh and db/couchdb.js

Source

This section is responsible for listening to transactions on the channel, filtering them as per policy and storing them on the transaction queue.

  • Make sure source attributes are correct in config.json
  • For the first time, we will enroll the admin node enrollAdmin.js
  • Now, we will register user for our platform node registerUser.js
  • Update/ create corresponding Network.yaml file in /source folder and you are now good to go.
  • Start the blocklistner and this runs forever, listening and processing transactions: node blocklistener.js

Destination

This section is responsible for retrieving from the transaction queue, processing to required format and sending the transaction onto destination. Make sure source attributes are correct in config.json

  • For the first time, we will enroll the admin node enrollAdmin.js
  • Now, we will register user for our platform node registerUser.js
  • Update/ create corresponding Network.yaml file in /source folder and you are now good to go.
  • Start the blocklistner and this runs forever, listening and processing transactions: node shipTransactions.js
  • NOTE: Use 'forever' node package to keep the script running all time.

hyperledger-distributed-transactions's People

Contributors

sm86 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

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.