Giter Club home page Giter Club logo

pathfindingservice's Introduction

PFS(SmartRaiden Path Finding Service)

PFS will be a smartraiden supporting function server written in go.

#Installing PFS

  • A cluster of individual components, dealing with different aspects of the SmartRaiden protocol.

Requirements

  • Go 1.8+
  • Postgres v10.0+

Setting up a development environment

# Get the code
git clone https://github.com/SmartMeshFoundation/SmartRaiden-Path-Finder.git
cd SmartRaiden-Path-Finder

# Build it
go get github.com/constabulary/gb/...
gb build

Congiguration

Postgres database setup

PFS requires a postgres database engine,version 10.0 or later.

sudo -u postgres createuser -P pfs     # prompts for password
  • Create database for PFS server:
sudo -u postgres createdb -O pfs pfs_nodeinfos

(On macOs omit sudo -u postgres from the above commands.)

PFS running parameters

  • Configuration parameters are stored at the file named "pathfinder.yaml",you cannnot rename it, this file is in the same directory as the executable file.
  • The parameters that need to be configured according to the actual application environment are:
    • registory_address :hex encoded address of the registry contract(e.g:0xd66d3719E89358e0790636b8586b539467EDa596)

    • address :The ethereum address you would link pfs to use sign transaction on ethereum

    • keystore_path :Path for the ethereum keystore directory

    • eth_rpc_endpoint :"host:port" address of ethereum JSON-RPC server, also accepts a protocol prefix (ws:// or ipc channel) with optional port

    • password-file :Text file containing password for provided account

    • chain_id :Chain id identifies the current chain and is used for replay protection

    • pfs->server_name:PFS name(default:"localhost")

    • ratelimited->stationary_feerate_default:Default fee rate,if you do not fill in,default as "0.0001"

    • logging->params->path :The path of log file

    • database->nodeinfos :The database connection string in postgres,that is data source name.

Starting a PFS server

./bin/smartraiden-pathfinding-service

Todo

It's still very much a work in progress.

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.