Skip to content

Instantly share code, notes, and snippets.

View thekaleidoscope's full-sized avatar

Yadhukrishna S Pai thekaleidoscope

View GitHub Profile
@thekaleidoscope
thekaleidoscope / main.go
Last active January 7, 2019 12:31
FabricEndpointConfig
package main
import (
"fmt"
"github.com/Volkswagen_World_Dyn/blockchain"
"os"
"time"
"strings"
"github.com/hyperledger/fabric-sdk-go/pkg/common/providers/fab"
"github.com/hyperledger/fabric-sdk-go/pkg/common/errors/retry"
@thekaleidoscope
thekaleidoscope / config.yaml
Created December 19, 2018 11:57
The config file for twp org(2 peer per org) consortium in hyperledger fabric
name: "volkswagen_world"
#
# Schema version of the content. Used by the SDK to apply the corresponding parsing rules.
#
version: 1.0.0
#
# The client section used by GO SDK.
#
client:
version: "2.1"
services:
#
# intkey-tp-python:
# image: hyperledger/sawtooth-intkey-tp-python:1.0
# container_name: sawtooth-intkey-tp-python-default
# depends_on:
# - validator
truffle migrate --network sawtooth --reset --verbose-rpc
Compiling ./contracts/test.sol...
Compilation warnings encountered:
/home/neosp/Test/Sawtooth/sawtooth-seth/contracts/test/contracts/test.sol:6:3: Warning: No visibility specified. Defaulting to "public".
function setName(string _name)
^ (Relevant source part starts here and spans across multiple lines).
,/home/neosp/Test/Sawtooth/sawtooth-seth/contracts/test/contracts/test.sol:10:3: Warning: No visibility specified. Defaulting to "public".
function getName() constant returns(string)

First things first

  • $ git clone https://github.com/hyperledger/sawtooth-seth
  • $ cd sawtooth-seth

To get official latest docs

  • Build with $ docker build . -f docs/Dockerfile -t seth-build-docs
  • Run with $ docker run -v $(pwd)/docs:/project/sawtooth-seth/docs seth-build-docs
@thekaleidoscope
thekaleidoscope / readme.md
Created March 19, 2018 10:55 — forked from benstr/readme.md
Gist Markdown Cheatsheet

#Heading 1 ##Heading 2 ###Heading 3 ####Heading 4 #####Heading 5 ######Heading 6


Paragraph

@thekaleidoscope
thekaleidoscope / Workarounds.md
Last active March 19, 2018 12:48
SRM Workarounds

To SSH a Remote server:

Open the access console from Digital-Ocean Console.

  sudo nano /etc/ssh/sshd_config
  #Change Port to 443 from 21 or 22.
  #Restart The SSH Serice.
  sudo systemctl restart ssh