Coder Social home page Coder Social logo

codechain-agent-client's Introduction

This project is moved to https://github.com/CodeChain-io/codechain-dashboard

CodeChain Agent Build Status

Requirements

The following are the software dependencies required to install and run CodeChain-agent:

Install dependencies (Ubuntu)

sudo apt install pkg-config libssl-dev

Run

To run CodeChain-agent, just run

cargo run -- --agent-hub-url <agent-hub-url> --codechain-dir <codechain-dir> --codechain-p2p-address <codechain-p2p-address> --name <name>

Formatting

Make sure you run rustfmt before creating a PR to the repo. You need to install the nightly-2018-12-06 version of rustfmt.

rustup toolchain install nightly-2018-12-06
rustup component add rustfmt-preview --toolchain nightly-2018-12-06

To run rustfmt,

cargo +nightly-2018-12-06 fmt

User Manual

Under docs folder, run following command.

make html

User manual will be generated at docs/_build/html.

codechain-agent-client's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

codechain-agent-client's Issues

The health checking logic is strange

#2018-09-21 09:48:02  process INFO agent  Ok(Object({"id": Number(1), "result": String("pong")}))
   Compiling codechain-vm v0.1.0 (file:///Users/gilyoungkim/Documents/workspace/codechain/vm)
#2018-09-21 09:48:03  process INFO agent  Ok(Object({"id": Number(1), "result": String("pong")}))
#2018-09-21 09:48:04  process INFO agent  Ok(Object({"id": Number(1), "result": String("pong")}))
#2018-09-21 09:48:05  process INFO agent  Ok(Object({"id": Number(1), "result": String("pong")}))
   Compiling codechain-network v0.1.0 (file:///Users/gilyoungkim/Documents/workspace/codechain/network)
#2018-09-21 09:48:06  process INFO agent  Ok(Object({"id": Number(1), "result": String("pong")}))
   Compiling codechain-keystore v0.1.0 (file:///Users/gilyoungkim/Documents/workspace/codechain/keystore)
   Compiling codechain-stratum v1.11.0 (file:///Users/gilyoungkim/Documents/workspace/codechain/stratum)
#2018-09-21 09:48:07  process INFO agent  Ok(Object({"id": Number(1), "result": String("pong")}))
#2018-09-21 09:48:08  process INFO agent  Ok(Object({"id": Number(1), "result": String("pong")}))

The node status always returns "Run" while compiling the CodeChain.
It has to return "Starting" status according to the spec documents.

Rotate the log

Currently, CodeChain's log is saved in the agent.log file.

We should rotate the file to manage it.

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.