https://sugarchain.org
Sugarchain's first node software is called Yumekawa (夢川). It can be interpreted in several ways.
Dream River in Japanese.Dreamy Cute.Core (e.g. Bitcoin Core), which we think 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.
Low-spec systems may still run Sugarchain, but initial synchronization and startup can take significantly longer.
Exactly the same as dependencies of Bitcoin Core v0.16.3.
sudo apt install \
build-essential software-properties-common 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
Old OS
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.
Ubuntu 16.04
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" && \
export BDB_CFLAGS="-I${BDB_PREFIX}/include" && \
export BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" && \
./configure && \
printf '#include <deque>\n#include <boost/bind/bind.hpp>\nusing namespace boost::placeholders;\n' >/tmp/sugar_compat.h && \
printf '#!/bin/sh\ncase " $* " in\n *"qt/trafficgraphwidget.cpp"*)\n exec g++ -include /tmp/sugar_compat.h -include QPainterPath "$@"\n ;;\n *)\n exec g++ -include /tmp/sugar_compat.h "$@"\n ;;\nesac\n' >/tmp/sugar-cxx && \
chmod +x /tmp/sugar-cxx && \
make -j$(nproc) CXX=/tmp/sugar-cxx && \
strip ./src/sugarchain-cli && \
strip ./src/sugarchaind && \
strip ./src/qt/sugarchain-qt && \
strip ./src/sugarchain-tx && \
strip ./src/test/test_sugarchain && \
./src/test/test_sugarchain test_bitcoin --log_level=test_suite && \
./src/sugarchaind --version
(optional) The following files 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)
./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)
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) When building for Windows or macOS, you may need the --disable-shared option.
(optional) Add seeds/nodes from DNSSEED
https://github.com/sugarchain-project/sugarchain/tree/master-v0.16.3/contrib/seeds
All Sugarchain Yumekawa developers should run these unit tests. Some updates may cause these tests to fail.
./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
contrib/bench/estimate-ibd.md for usage.The options -rpcuser, -rpcpassword, and -printtoconsole are optional. -server=1 is required for RPC access 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) the size of debug.log (default).
./src/qt/sugarchain-qt -prunedebuglogfile
-noprunedebuglogfile: Disable debug.log pruning.
./src/qt/sugarchain-qt -noprunedebuglogfile
-fast-ibd=1: Enable Fast IBD (default). Uses checkpoint-authenticated header synchronization and parallel Yespower verification to significantly reduce initial sync time.
./src/qt/sugarchain-qt -fast-ibd=1
-fast-ibd=0: Disable Fast IBD. Historical headers are fully verified with Yespower.
./src/qt/sugarchain-qt -fast-ibd=0
https://gist.github.com/cryptozeny/3501c77750541208b9dd1a9e9719fc53