Giter Site home page Giter Site logo

achain-dev / achain Goto Github PK

View Code? Open in Web Editor NEW
174.0 46.0 60.0 157.35 MB

Achain blockchain

Home Page: https://www.achain.com

License: MIT License

C++ 98.45% C 1.47% CMake 0.01% Lua 0.05% Perl 0.01% M4 0.01% Batchfile 0.01% Shell 0.01% Makefile 0.01% Python 0.01%
achain blockchain exchange windows linux achain-github

achain's Issues

怎么在windows上编译

windows上编译的帮助文档贼鸡儿差,Achain_ROOT下并没有讲明LevelDB、fc等文档的来源以及作用,在windows下很难编译成功,在linux编译帮助里面也没看到fc的作用。另外linux的帮助为啥这么曲折,和windows风格都不一样。。

Node is stuck at 8524100 block

I installed the Achain node on my Ubuntu 18 server. Node synchronization has stopped a while ago. Then I updated it to the latest version (v2.1). Sync is not active again. Node is now at block 8524100. Another problem is that Achain responds slowly to RPC requests. How can I solve the slow respond problem?

I am running the node as systemd service. For this, I use the --server --daemon parameters. But the node does not print any logs into the console.

Server:
OS: Ubuntu 18.04.3 LTS
Cpu Core Count: 4
Cpu Model: QEMU Virtual CPU version 2.5+
Ram Size: 2GB
Swap: 2 GB
Disk Size: 100GB

systemd.service file

[Unit]
Description=ACT Coin Daemon
After=network.target

[Service]
Type=simple
WorkingDirectory=/data/
ExecStart=/data/bin/2.1/Achain --data-dir /data/resources --wallet-dir /data/wallets --server --daemon
Restart=on-failure

[Install]
WantedBy=multi-user.target

Config file

{
  "logging": {
    "includes": [],
    "appenders": [{
        "name": "stderr",
        "type": "console",
        "args": {
          "stream": "std_error",
          "level_colors": [{
              "level": "debug",
              "color": "green"
            },{
              "level": "warn",
              "color": "brown"
            },{
              "level": "error",
              "color": "red"
            }
          ]
        },
        "enabled": true
      },{
        "name": "default",
        "type": "file",
        "args": {
          "format": "${timestamp} ${thread_name} ${context} ${file}:${line} ${method} ${level}]  ${message}",
          "filename": "/data/logs/default/default.log",  // I have defined the full path
          "flush": true,
          "rotate": true,
          "rotation_interval": 3600000000,
          "rotation_limit": "86400000000"
        },
        "enabled": true
      },{
        "name": "rpc",
        "type": "file",
        "args": {
          "format": "${timestamp} ${thread_name} ${context} ${file}:${line} ${method} ${level}]  ${message}",
          "filename": "/data/logs/rpc/rpc.log",  // I have defined the full path
          "flush": true,
          "rotate": true,
          "rotation_interval": 3600000000,
          "rotation_limit": "86400000000"
        },
        "enabled": true
      },{
        "name": "blockchain",
        "type": "file",
        "args": {
          "format": "${timestamp} ${thread_name} ${context} ${file}:${line} ${method} ${level}]  ${message}",
          "filename": "/data/logs/blockchain/blockchain.log",  // I have defined the full path
          "flush": true,
          "rotate": true,
          "rotation_interval": 3600000000,
          "rotation_limit": "86400000000"
        },
        "enabled": true
      },{
        "name": "p2p",
        "type": "file",
        "args": {
          "format": "${timestamp} ${thread_name} ${context} ${file}:${line} ${method} ${level}]  ${message}",
          "filename": "/data/logs/p2p/p2p.log",  // I have defined the full path
          "flush": true,
          "rotate": true,
          "rotation_interval": 3600000000,
          "rotation_limit": "86400000000"
        },
        "enabled": true
      }
    ],
    "loggers": [{
        "name": "default",
        "level": "warn",
        "enabled": true,
        "additivity": false,
        "appenders": [
          "default",
          "p2p"
        ]
      },{
        "name": "client",
        "level": "warn",
        "enabled": true,
        "additivity": false,
        "appenders": [
          "default",
          "p2p"
        ]
      },{
        "name": "rpc",
        "level": "warn",
        "enabled": true,
        "additivity": false,
        "appenders": [
          "rpc"
        ]
      },{
        "name": "p2p",
        "level": "warn",
        "enabled": true,
        "additivity": false,
        "appenders": [
          "p2p"
        ]
      },{
        "name": "user",
        "level": "debug",
        "enabled": true,
        "additivity": false,
        "appenders": [
          "user"
        ]
      },{
        "name": "blockchain",
        "level": "warn",
        "enabled": true,
        "additivity": false,
        "appenders": [
          "blockchain"
        ]
      }
    ]
  },
  "ignore_console": false,
  "client_debug_name": "MY_ACT", // I Filled this
  "rpc": {
    "enable": true,  // false to true
    "enable_cache": false,
    "rpc_user": "my_rpc_user", // I Filled this
    "rpc_password": "my_rpc_pass",  // I Filled this
    "rpc_endpoint": "127.0.0.1:0",
    "httpd_endpoint": "0.0.0.0:2222", // I Changed this
    "encrypted_rpc_endpoint": "127.0.0.1:0",
    "encrypted_rpc_wif_key": "",
    "htdocs": "./htdocs"
  },
  "statistics_enabled": false,
  "default_peers": [
    "node.achain.com:61696"
  ],
  "maximum_number_of_connections": 200,
  "use_upnp": true,
  "chain_servers": [],
  "chain_server": {
    "enabled": true, // false to true
    "listen_port": 0
  },
  "wallet_enabled": true,
  "min_relay_fee": 1000,
  "wallet_callback_url": "",
  "light_network_fee": 1000,
  "light_relay_fee": 1000,
  "relay_account_name": "",
  "faucet_account_name": ""
}

Achain Weekly Report - 2017.09.25

Hi,everyone,here is the latest news from Achain.

Business Development:
  • Issued a new token at the testing stage.
  • Engaged in collaboration with an overseas Cryptocurrency Exchange, the requirement of API and documentation had been satisfied.
Core:
  • Refactor designing had been completed more than 60%.
  • Linux-ubuntu version had been tested.
  • Linux-ubuntu version setup package had been completed.
Smart Contract:
  • Code review (Glua part).
  • Achain Wallet:
Debug.
  • Added automatic update feature.
  • Added user-statistics feature.
Documentation:
  • Released a Chinese document of RPC (Remote Process Control).
Open source:
  • Published the fast-compile code to Github.
Official Website & Achain Forum:
  • On-going optimization of official website.
  • Set down the lectotype of forum for globalization.

Deploy in Ubuntu 16.04 error

hi ..
i follow this tutorial https://github.com/Achain-Dev/Achain/blob/master/linux_installation_guide
failed at " 5). install fast compile library"
any clue

[ 40%] Building CXX object CMakeFiles/fc.dir/src/log/logger.cpp.o
[ 41%] Building CXX object CMakeFiles/fc.dir/src/log/appender.cpp.o
[ 42%] Building CXX object CMakeFiles/fc.dir/src/log/console_appender.cpp.o
[ 42%] Building CXX object CMakeFiles/fc.dir/src/log/file_appender.cpp.o
/home/ubuntu/leveldb-1.20/miniupnpc-1.8.20131209/fast-compile/src/log/file_appender.cpp: In constructor ‘fc::file_appender::file_appender(const fc::variant&)’:
/home/ubuntu/leveldb-1.20/miniupnpc-1.8.20131209/fast-compile/src/log/file_appender.cpp:161:15: error: ‘cerr’ is not a member of ‘std’
std::cerr << "error opening log file: " << my->cfg.filename.preferred_string() << "\n";
^~~~
/home/ubuntu/leveldb-1.20/miniupnpc-1.8.20131209/fast-compile/src/log/file_appender.cpp:161:15: note: suggested alternative: ‘erf’
std::cerr << "error opening log file: " << my->cfg.filename.preferred_string() << "\n";
^~~~
erf
CMakeFiles/fc.dir/build.make:1022: recipe for target 'CMakeFiles/fc.dir/src/log/file_appender.cpp.o' failed
make[2]: *** [CMakeFiles/fc.dir/src/log/file_appender.cpp.o] Error 1
CMakeFiles/Makefile2:300: recipe for target 'CMakeFiles/fc.dir/all' failed
make[1]: *** [CMakeFiles/fc.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
root@ip-172-31-92-43:/home/ubuntu/leveldb-1.20/miniupnpc-1.8.20131209/fast-compile#

Linking failed

[100%] Linking CXX executable Achain
/opt/cmake-3.16.0/bin/cmake -E cmake_link_script CMakeFiles/Achain.dir/link.txt --verbose=1
/usr/bin/g++  -std=c++11 -DALP_GLOBAL_API_LOG=1 -fpermissive  -rdynamic CMakeFiles/Achain.dir/Main.cpp.o  -o Achain   -L/usr/local/lib  -L/home/h0rs3/Achain/src/Chain/libraries/api  -L/home/h0rs3/Achain/src/Chain/libraries/blockchain  -L/home/h0rs3/Achain/src/Chain/libraries/utilities  -L/home/h0rs3/Achain/src/Chain/libraries/cli  -L/home/h0rs3/Achain/src/Chain/libraries/client  -L/home/h0rs3/Achain/src/Chain/libraries/db  -L/home/h0rs3/Achain/src/Chain/libraries/glua  -L/home/h0rs3/Achain/src/Chain/libraries/net  -L/home/h0rs3/Achain/src/Chain/libraries/rpc  -L/home/h0rs3/Achain/src/Chain/libraries/rpc_stubs  -L/home/h0rs3/Achain/src/Chain/libraries/wallet  -Wl,-rpath,/usr/local/lib:/home/h0rs3/Achain/src/Chain/libraries/api:/home/h0rs3/Achain/src/Chain/libraries/blockchain:/home/h0rs3/Achain/src/Chain/libraries/utilities:/home/h0rs3/Achain/src/Chain/libraries/cli:/home/h0rs3/Achain/src/Chain/libraries/client:/home/h0rs3/Achain/src/Chain/libraries/db:/home/h0rs3/Achain/src/Chain/libraries/glua:/home/h0rs3/Achain/src/Chain/libraries/net:/home/h0rs3/Achain/src/Chain/libraries/rpc:/home/h0rs3/Achain/src/Chain/libraries/rpc_stubs:/home/h0rs3/Achain/src/Chain/libraries/wallet libtotal.a libglua.a /usr/local/lib/libfc.a -Wl,-Bstatic -lsecp256k1 -lleveldb -lminiupnpc -lboost_system -lboost_program_options -lboost_chrono -lboost_context -lboost_coroutine -lboost_date_time -lboost_exception -lboost_filesystem -lboost_iostreams -lboost_locale -lboost_thread -Wl,-Bdynamic -lpthread -Wl,-Bstatic -lboost_regex -lboost_atomic -lcrypto -Wl,-Bdynamic -ldl -lpthread -Wl,-Bstatic -lboost_regex -lboost_atomic -lcrypto -Wl,-Bdynamic -ldl 
^Cmake[2]: *** Deleting file 'Achain'
CMakeFiles/Achain.dir/build.make:104: recipe for target 'Achain' failed

Ubuntu 16.04
g++ 5.4
make 4.1

Build BLOCKCHAIN code

i follow 7). build BLOCKCHAIN code
but still error like bellow
/home/ubuntu/Achain_linux/Chain/libraries/client:/home/ubuntu/Achain_linux/Chain/libraries/db:/home/ubuntu/Achain_linux/Chain/libraries/glua:/home/ubuntu/Achain_linux/Chain/libraries/net:/home/ubuntu/Achain_linux/Chain/libraries/rpc:/home/ubuntu/Achain_linux/Chain/libraries/rpc_stubs:/home/ubuntu/Achain_linux/Chain/libraries/wallet
/usr/bin/ld: cannot find -lminiupnpc
collect2: error: ld returned 1 exit status
CMakeFiles/Achain.dir/build.make:114: recipe for target 'Achain' failed
make[2]: *** [Achain] Error 1
make[2]: Leaving directory '/home/ubuntu/Achain_linux/Chain'
CMakeFiles/Makefile2:145: recipe for target 'CMakeFiles/Achain.dir/all' failed

OSX wallet?

Few months back, the issue was closed with an argument that:

"It'll get released in a few months"

May we have the timeframe?

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.