achain-dev / achain Goto Github PK
View Code? Open in Web Editor NEWAchain blockchain
Home Page: https://www.achain.com
License: MIT License
Achain blockchain
Home Page: https://www.achain.com
License: MIT License
windows上编译的帮助文档贼鸡儿差,Achain_ROOT下并没有讲明LevelDB、fc等文档的来源以及作用,在windows下很难编译成功,在linux编译帮助里面也没看到fc的作用。另外linux的帮助为啥这么曲折,和windows风格都不一样。。
我想要同步一个主网镜像
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": ""
}
how can i connect to the testnet in ubuntu?
到现在都没有一个全节点的钱包,你们做的是区块链么。。。
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#
?
[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
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
Few months back, the issue was closed with an argument that:
"It'll get released in a few months"
May we have the timeframe?
估计公司快倒闭了,代码没人维护了,或者就没想着要开源出来
?
I can't develop on the wallet directly.
私有链部署怎么配置对接?私有链部署怎么配置对接?私有链部署怎么配置对接?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.