https://sugarchain.org
Sugarchain's first node software is called Yumekawa (夢川)
. It can be translated in some ways.
Dream River
in japanese.Dreamy Cute
.Core
(ie: Bitcoin Core). We think it sounds a bit centralized.Sugarchain Yumekawa is released under the terms of the MIT license. See COPYING for more information or see https://opensource.org/licenses/MIT.
Exactly the same as dependencies of Bitcoin Core v0.16.3.
sudo apt-get install -y \
software-properties-common build-essential libtool autotools-dev automake pkg-config \
libssl-dev libevent-dev bsdmainutils libboost-all-dev \
libminiupnpc-dev libzmq3-dev libqt5gui5 libqt5core5a \
libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev \
protobuf-compiler libqrencode-dev help2man
PPA is only for Ubuntu. No libdb4.8-dev
and libdb4.8++-dev
packages on Debian.
sudo add-apt-repository -y ppa:bitcoin/bitcoin && \
sudo apt-get update && \
sudo apt-get install -y \
libdb4.8-dev libdb4.8++-dev \
software-properties-common build-essential libtool autotools-dev automake pkg-config \
libssl-dev libevent-dev bsdmainutils libboost-all-dev \
libminiupnpc-dev libzmq3-dev libqt5gui5 libqt5core5a \
libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev \
protobuf-compiler libqrencode-dev help2man
sudo add-apt-repository -y ppa:luke-jr/bitcoincore && \
sudo apt-get update && \
sudo apt-get install -y \
libdb4.8-dev libdb4.8++-dev \
software-properties-common build-essential libtool autotools-dev automake pkg-config \
libssl-dev libevent-dev bsdmainutils libboost-all-dev \
libminiupnpc-dev libzmq3-dev libqt5gui5 libqt5core5a \
libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev \
protobuf-compiler libqrencode-dev help2man
./autogen.sh && \
./contrib/install_db4.sh `pwd` && \
export BDB_PREFIX=$PWD/db4 && \
./configure BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB_PREFIX}/include" && \
make -j$(nproc) && \
make check -j$(nproc)
(optional) Following can be deleted rm -rf db4/ && rm -f db-4.8.30.NC.tar.gz
./autogen.sh && \
./configure && \
make -j$(nproc) && \
make check -j$(nproc)
strip ./src/sugarchain-cli && \
strip ./src/sugarchaind && \
strip ./src/qt/sugarchain-qt && \
strip ./src/sugarchain-tx && \
strip ./src/test/test_sugarchain
configure.ac
, update binary docs (manpages) using help2man .1
filesmake -j$(nproc) && ./contrib/devtools/gen-manpages.sh
(optional) build for Windows and OSX you may need --disable-shared
option with make.
(optional) Add seeds/nodes from DNSSEED
https://github.com/sugarchain-project/sugarchain/tree/master-v0.16.3/contrib/seeds
All Sugarchain Yumekawa developers should execute this unit test. Some updates may break these tests in some occasions.
./src/test/test_sugarchain test_bitcoin --log_level=test_suite
blockencodings_tests
./src/test/test_sugarchain test_bitcoin --log_level=test_suite --run_test=blockencodings_tests
./src/qt/test/test_sugarchain-qt
The options -rpcuser
, -rpcpassword
, and -printtoconsole
are optional. server=1
needed by RPC servers or cpuminer when solo-mining.
Mainnet: debug mode: net
for Network
./src/qt/sugarchain-qt -server=1 -rpcuser=rpcuser -rpcpassword=rpcpassword -debug=net -printtoconsole
Testnet
./src/qt/sugarchain-qt -testnet
Regtest
./src/qt/sugarchain-qt -regtest
Reference
https://en.bitcoin.it/w/index.php?title=Running_Bitcoin&oldid=66644
-prunedebuglogfile
: Prune (limit) filesize of debug.log
./src/qt/sugarchain-qt -prunedebuglogfile
2020-09-15 19:41:34 DEBUG.LOG PRUNED at 10000063
https://gist.github.com/cryptozeny/3501c77750541208b9dd1a9e9719fc53