Giter VIP home page Giter VIP logo

ytdatanode's Introduction

YTDataNode

ytf矿机存储节点

使用

# 编译
make build
# 使用示例
1. 初始化节点
./out/linux-amd64-0.0.1/ytfs-node init
2. 修改node-config.json bplist 
vim ~/YTFS/node-config.json 
3. 启动
./out/linux-amd64-0.0.1/ytfs-node daemon

restful接口

serverHost = “127.0.0.1:9002”

  • 获取节点id “/api/v0/node/id”
  • 获取节点收益 “/api/v0/node/income”
  • 获取存储空间使用状况 “/api/v0/ytfs/state”

config

# node-config.json
{
  "ID": "16Uiu2HAm1V3Jzg4bCzjgcW91nMnssySz7bHxo363zyLzNajSH6QN",
#   超级节点列表
  "BPList": [
    {
      "ID": "16Uiu2HAkyHhwuzkR6fRhKbhUBVMySBKKtLCRkReYTJQEyfCkPSfN",
      "Addrs": [
        "/ip4/152.136.16.118/tcp/9999"
      ]
    },
    {
      "ID": "16Uiu2HAm9fBJNUzSD5V9aFJQQHbxE3rPsTiyrYk7vju18JCf3xm8",
      "Addrs": [
        "/ip4/152.136.17.115/tcp/9999"
      ]
    },
    {
      "ID": "16Uiu2HAkwNCD9HSH5hh36LmzgLjRcQiQFpT9spwspaAM5AH3rqA9",
      "Addrs": [
        "/ip4/152.136.18.185/tcp/9999"
      ]
    }
  ],
#   服务监听地址
  "ListenAddr": "/ip4/0.0.0.0/tcp/9001",
#   api监听地址
  "APIListen": ":9002",
}

ytdatanode's People

Contributors

vvrqd26 avatar wendy216 avatar bruno-latour 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.