Skip to content

Commit 6b5e480

Browse files
authored
star : update name and color theme (#8)
* update codebase * Update README.md * [Bugfix] rename * [Bugfix] update folder name * Update style_light.css
1 parent 4ec2e82 commit 6b5e480

1,798 files changed

Lines changed: 222757 additions & 168853 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.cargo/config.offline

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[source.crates-io]
2+
replace-with = "vendored-sources"
3+
4+
[source.vendored-sources]
5+
# The directory for this source is set to RUST_VENDORED_SOURCES by src/Makefile.am

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src/clientversion.cpp export-subst

.github/ISSUE_TEMPLATE.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<!--- Remove this description and sections that do not apply -->
2+
3+
This issue tracker is only for technical issues related to ClearCoin Core.
4+
General ClearCoin questions and/or support requests and are best directed to the [ClearCoin Discord](https://discord.clearnodes.com).
5+
6+
### Describe the issue
7+
8+
### Can you reliably reproduce the issue?
9+
#### If so, please list the steps to reproduce below:
10+
1.
11+
2.
12+
3.
13+
14+
### Expected behavior
15+
Tell us what should happen
16+
17+
### Actual behavior
18+
Tell us what happens instead
19+
20+
### Screenshots.
21+
If the issue is related to the GUI, screenshots can be added to this issue via drag & drop.
22+
23+
### What version of ClearCoin Core are you using?
24+
List the version number/commit ID, and if it is an official binary, self compiled or a distribution package.
25+
26+
### Machine specs:
27+
- OS:
28+
- CPU:
29+
- RAM:
30+
- Disk size:
31+
- Disk Type (HD/SDD):
32+
33+
### Any extra information that might be useful in the debugging process.
34+
This is normally the contents of a `debug.log`, `db.log` or `config.log` file. Raw text or a link to a pastebin type site are preferred.

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.5.6

.travis.yml

Lines changed: 167 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,149 +1,265 @@
1-
sudo: required
2-
dist: trusty
1+
# The test build matrix (stage: test) is constructed to test a wide range of
2+
# configurations, rather than a single pass/fail. This helps to catch build
3+
# failures and logic errors that present on platforms other than the ones the
4+
# author has tested.
5+
#
6+
# Some builders use the dependency-generator in `./depends`, rather than using
7+
# apt-get to install build dependencies. This guarantees that the tester is
8+
# using the same versions as Gitian, so the build results are nearly identical
9+
# to what would be found in a final release.
10+
#
11+
# In order to avoid rebuilding all dependencies for each build, the binaries
12+
# are cached and re-used when possible. Changes in the dependency-generator
13+
# will trigger cache-invalidation and rebuilds as necessary.
14+
#
15+
# These caches can be manually removed if necessary. This is one of the very
16+
# few manual operations that is possible with Travis, and it can be done by a
17+
# PIVX GitHub member via the Travis web interface [0].
18+
#
19+
# Travis CI uploads the cache after the script phase of the build [1].
20+
# However, the build is terminated without saving the chache if it takes over
21+
# 50 minutes [2]. Thus, if we spent too much time in early build stages, fail
22+
# with an error and save the cache.
23+
#
24+
# [0] https://travis-ci.org/ClearNode/ClearCoin/caches
25+
# [1] https://docs.travis-ci.com/user/caching/#build-phases
26+
# [2] https://docs.travis-ci.com/user/customizing-the-build#build-timeouts
27+
28+
dist: xenial
329
os: linux
430
language: minimal
531
cache:
632
ccache: true
733
directories:
8-
- depends/built
9-
- depends/sdk-sources
10-
- $HOME/.ccache
34+
- $TRAVIS_BUILD_DIR/depends/built
35+
- $TRAVIS_BUILD_DIR/depends/sdk-sources
36+
- $HOME/.ccache
37+
- $HOME/.clr-params
1138
stages:
1239
- lint
40+
- cmake
1341
- test
42+
1443
env:
1544
global:
1645
- MAKEJOBS=-j3
1746
- RUN_UNIT_TESTS=true
18-
- RUN_FUNCTIONAL_TESTS=false # Not Yet Implemented
47+
- RUN_FUNCTIONAL_TESTS=false
1948
- RUN_BENCH=false # Set to true for any one job that has debug enabled, to quickly check bench is not crashing or hitting assertions
2049
- DOCKER_NAME_TAG=ubuntu:18.04
2150
- BOOST_TEST_RANDOM=1$TRAVIS_BUILD_ID
2251
- CCACHE_SIZE=100M
2352
- CCACHE_TEMPDIR=/tmp/.ccache-temp
2453
- CCACHE_COMPRESS=1
2554
- CCACHE_DIR=$HOME/.ccache
55+
- PARAMS_DIR=$HOME/.clr-params
2656
- BASE_OUTDIR=$TRAVIS_BUILD_DIR/out
2757
- SDK_URL=https://bitcoincore.org/depends-sources/sdks
2858
- WINEDEBUG=fixme-all
2959
- DOCKER_PACKAGES="build-essential libtool autotools-dev automake pkg-config bsdmainutils curl git ca-certificates ccache"
30-
60+
- CACHE_ERR_MSG="Error! Initial build successful, but not enough time remains to run later build stages and tests. Please manually re-run this job by using the travis restart button or asking a bitcoin maintainer to restart. The next run should not time out because the build cache has been saved."
3161
before_install:
3262
- set -o errexit; source .travis/test_03_before_install.sh
3363
install:
3464
- set -o errexit; source .travis/test_04_install.sh
3565
before_script:
3666
- set -o errexit; source .travis/test_05_before_script.sh
3767
script:
38-
- set -o errexit; source .travis/test_06_script.sh
68+
- export CONTINUE=1
69+
- if [ $SECONDS -gt 1200 ]; then export CONTINUE=0; fi # Likely the depends build took very long
70+
- if [ $CONTINUE = "1" ]; then set -o errexit; source .travis/test_06_script_a.sh; else set +o errexit; echo "$CACHE_ERR_MSG"; false; fi
71+
- if [ -n ${BUILD_TIMEOUT+x} ] && [ $SECONDS -gt $BUILD_TIMEOUT ]; then export CONTINUE=0; fi
72+
- if [ $SECONDS -gt 2000 ]; then export CONTINUE=0; fi # Likely the build took very long; The tests take about 1000s, so we should abort if we have less than 50*60-1000=2000s left
73+
- if [ $CONTINUE = "1" ]; then set -o errexit; source .travis/test_06_script_b.sh; else set +o errexit; echo "$CACHE_ERR_MSG"; false; fi
3974
after_script:
40-
- echo $TRAVIS_COMMIT_RANGE
41-
- echo $TRAVIS_COMMIT_LOG
42-
75+
- echo $TRAVIS_COMMIT_RANGE
76+
- echo $TRAVIS_COMMIT_LOG
4377
jobs:
78+
allow_failures:
79+
- stage: cmake
80+
fast_finish: true
4481
include:
45-
# lint stage
82+
4683
- stage: lint
84+
name: 'lint'
4785
env:
48-
sudo: false
4986
cache: false
5087
language: python
51-
python: '3.6'
88+
python: '3.5' # Oldest supported version according to doc/dependencies.md
5289
install:
5390
- set -o errexit; source .travis/lint_04_install.sh
5491
before_script:
5592
- set -o errexit; source .travis/lint_05_before_script.sh
5693
script:
5794
- set -o errexit; source .travis/lint_06_script.sh
58-
# ARM
95+
5996
- stage: test
97+
name: 'ARM 32-bit [GOAL: install] [no unit or functional tests]'
6098
env: >-
6199
HOST=arm-linux-gnueabihf
62100
PACKAGES="python3 g++-arm-linux-gnueabihf"
63-
DEP_OPTS="NO_QT=1"
64101
RUN_UNIT_TESTS=false
65102
RUN_FUNCTIONAL_TESTS=false
66103
GOAL="install"
67104
# -Wno-psabi is to disable ABI warnings: "note: parameter passing for argument of type ... changed in GCC 7.1"
68105
# This could be removed once the ABI change warning does not show up by default
69-
BITCOIN_CONFIG="--enable-glibc-back-compat --enable-reduce-exports CXXFLAGS=-Wno-psabi"
70-
# AArch64
106+
BITCOIN_CONFIG="--with-gui=qt5 --enable-glibc-back-compat --enable-reduce-exports --disable-online-rust CXXFLAGS=-Wno-psabi"
107+
71108
- stage: test
109+
name: 'ARM 64-bit [GOAL:install] [no unit or functional tests]'
72110
env: >-
73111
HOST=aarch64-linux-gnu
74112
PACKAGES="python3 g++-aarch64-linux-gnu"
75-
DEP_OPTS="NO_QT=1"
76113
RUN_UNIT_TESTS=false
77114
RUN_FUNCTIONAL_TESTS=false
78115
GOAL="install"
79-
BITCOIN_CONFIG="--enable-glibc-back-compat --enable-reduce-exports"
80-
# Win32
81-
- stage: test
82-
env: >-
83-
HOST=i686-w64-mingw32
84-
DPKG_ADD_ARCH="i386"
85-
DEP_OPTS="NO_QT=1"
86-
PACKAGES="python3 nsis g++-mingw-w64-i686 wine-binfmt wine32"
87-
GOAL="install"
88-
BITCOIN_CONFIG="--enable-reduce-exports"
89-
# Win64
116+
BITCOIN_CONFIG="--with-gui=qt5 --enable-glibc-back-compat --enable-reduce-exports --disable-online-rust"
117+
90118
- stage: test
119+
name: 'Win64 [GOAL: deploy] [no functional tests]'
91120
env: >-
92121
HOST=x86_64-w64-mingw32
93-
DEP_OPTS="NO_QT=1"
94122
PACKAGES="python3 nsis g++-mingw-w64-x86-64 wine-binfmt wine64"
95-
GOAL="install"
96-
BITCOIN_CONFIG="--enable-reduce-exports"
97-
# 32-bit + dash
123+
RUN_FUNCTIONAL_TESTS=false
124+
GOAL="deploy"
125+
BITCOIN_CONFIG="--with-gui=auto --enable-reduce-exports --disable-online-rust --with-params-dir=$PARAMS_DIR"
126+
98127
- stage: test
128+
name: '32-bit + dash [GOAL: install]'
99129
env: >-
100130
HOST=i686-pc-linux-gnu
101131
PACKAGES="g++-multilib python3-zmq"
102-
DEP_OPTS="NO_QT=1"
103132
GOAL="install"
104-
BITCOIN_CONFIG="--enable-zmq --enable-glibc-back-compat --enable-reduce-exports LDFLAGS=-static-libstdc++"
133+
BITCOIN_CONFIG="--enable-zmq --with-gui=qt5 --enable-glibc-back-compat --enable-reduce-exports --disable-online-rust --with-params-dir=$PARAMS_DIR LDFLAGS=-static-libstdc++"
105134
CONFIG_SHELL="/bin/dash"
106-
# x86_64 Linux (uses qt5 dev package instead of depends Qt to speed up build and avoid timeout)
135+
136+
- stage: test
137+
name: 'x86_64 Linux [GOAL: install] [bionic] [uses qt5 dev package instead of depends Qt to speed up build and avoid timeout]'
138+
env: >-
139+
HOST=x86_64-unknown-linux-gnu
140+
PACKAGES="python3-zmq qtbase5-dev qttools5-dev-tools libqt5svg5-dev libqt5charts5-dev libqrencode-dev protobuf-compiler libdbus-1-dev libharfbuzz-dev libprotobuf-dev"
141+
DEP_OPTS="NO_QT=1 NO_UPNP=1 DEBUG=1 ALLOW_HOST_PACKAGES=1"
142+
RUN_FUNCTIONAL_TESTS=true
143+
#TEST_RUNNER_EXTRA="--coverage --extended" # Run extended tests so that coverage does not fail, but exclude the very slow dbcrash
144+
GOAL="install"
145+
BITCOIN_CONFIG="--enable-zmq --with-gui=qt5 --enable-glibc-back-compat --enable-reduce-exports --disable-online-rust --with-params-dir=$PARAMS_DIR"
146+
BUILD_TIMEOUT=540
147+
107148
- stage: test
149+
name: 'x86_64 Linux [GOAL: install] [bionic] [no GUI, no unit tests - only functional tests on legacy pre-HD wallets]'
108150
env: >-
109151
HOST=x86_64-unknown-linux-gnu
110-
PACKAGES="python3-zmq qtbase5-dev qttools5-dev-tools protobuf-compiler libdbus-1-dev libharfbuzz-dev libprotobuf-dev"
152+
PACKAGES="python3-zmq protobuf-compiler libdbus-1-dev libharfbuzz-dev libprotobuf-dev"
111153
DEP_OPTS="NO_QT=1 NO_UPNP=1 DEBUG=1 ALLOW_HOST_PACKAGES=1"
154+
RUN_UNIT_TESTS=false
155+
RUN_FUNCTIONAL_TESTS=true
156+
TEST_RUNNER_EXTRA="--legacywallet" # Run functional tests on pre-HD wallet
157+
GOAL="install"
158+
BITCOIN_CONFIG="--enable-zmq --with-gui=no --enable-glibc-back-compat --enable-reduce-exports --disable-online-rust --with-params-dir=$PARAMS_DIR"
159+
BUILD_TIMEOUT=800
160+
161+
- stage: test
162+
name: 'x86_64 Linux [GOAL: install] [xenial] [no depends, only system libs]'
163+
env: >-
164+
HOST=x86_64-unknown-linux-gnu
165+
DOCKER_NAME_TAG=ubuntu:16.04
166+
PACKAGES="python3-zmq qtbase5-dev qttools5-dev-tools libqt5svg5-dev libssl-dev libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev libdb5.3++-dev libminiupnpc-dev libzmq3-dev libprotobuf-dev protobuf-compiler libqrencode-dev libgmp-dev libsodium-dev cargo"
167+
NO_DEPENDS=1
112168
GOAL="install"
113-
BITCOIN_CONFIG="--enable-zmq --with-gui=qt5 --enable-glibc-back-compat --enable-reduce-exports CPPFLAGS=-DDEBUG_LOCKORDER"
114-
# x86_64 Linux (no depends, only system libs)
169+
BITCOIN_CONFIG="--enable-zmq --with-incompatible-bdb --with-gui=qt5 CPPFLAGS=-DDEBUG_LOCKORDER --disable-hardening --disable-asm --with-params-dir=$PARAMS_DIR"
170+
115171
- stage: test
172+
name: 'x86_64 Linux [GOAL: install] [bionic] [no depends, only system libs]'
116173
env: >-
117174
HOST=x86_64-unknown-linux-gnu
118-
PACKAGES="python3-zmq qtbase5-dev qttools5-dev-tools libssl1.0-dev libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev libdb5.3++-dev libminiupnpc-dev libzmq3-dev libprotobuf-dev protobuf-compiler libqrencode-dev libgmp-dev"
175+
PACKAGES="python3-zmq qtbase5-dev qttools5-dev-tools libqt5svg5-dev libqt5charts5-dev libssl1.0-dev libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev libdb5.3++-dev libminiupnpc-dev libzmq3-dev libprotobuf-dev protobuf-compiler libqrencode-dev libgmp-dev libsodium-dev cargo"
119176
NO_DEPENDS=1
120177
GOAL="install"
121-
BITCOIN_CONFIG="--enable-zmq --with-incompatible-bdb --enable-glibc-back-compat --enable-reduce-exports --with-gui=qt5 CPPFLAGS=-DDEBUG_LOCKORDER"
122-
# x86_64 Linux (sanitizers)
178+
BITCOIN_CONFIG="--enable-zmq --with-incompatible-bdb --with-gui=qt5 --with-params-dir=$PARAMS_DIR CPPFLAGS=-DDEBUG_LOCKORDER"
179+
123180
# - stage: test
181+
# name: 'x86_64 Linux [GOAL: install] [bionic] [no depends, only system libs, sanitizers: fuzzer,address]'
124182
# env: >-
125183
# HOST=x86_64-unknown-linux-gnu
126-
# PACKAGES="clang python3-zmq qtbase5-dev qttools5-dev-tools libssl1.0-dev libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev libdb5.3++-dev libminiupnpc-dev libzmq3-dev libprotobuf-dev protobuf-compiler libqrencode-dev libgmp-dev"
184+
# PACKAGES="clang python3-zmq qtbase5-dev qttools5-dev-tools libqt5svg5-dev libqt5charts5-dev libssl1.0-dev libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev libdb5.3++-dev libminiupnpc-dev libzmq3-dev libprotobuf-dev protobuf-compiler libqrencode-dev libgmp-dev"
127185
# NO_DEPENDS=1
186+
# RUN_UNIT_TESTS=false
187+
# RUN_FUNCTIONAL_TESTS=false
128188
# RUN_BENCH=true
129-
# RUN_FUNCTIONAL_TESTS=false # Disabled for now, can be combined with the other x86_64 linux NO_DEPENDS job when functional tests pass the sanitizers
130189
# GOAL="install"
131190
# BITCOIN_CONFIG="--enable-zmq --with-incompatible-bdb --enable-glibc-back-compat --enable-reduce-exports --with-gui=qt5 CPPFLAGS=-DDEBUG_LOCKORDER --with-sanitizers=undefined CC=clang CXX=clang++"
132-
# x86_64 Linux, No wallet
191+
133192
# - stage: test
193+
# name: 'x86_64 Linux [GOAL: install] [bionic] [no wallet]'
134194
# env: >-
135195
# HOST=x86_64-unknown-linux-gnu
136-
# PACKAGES="python3"
196+
# PACKAGES="python3-zmq"
137197
# DEP_OPTS="NO_WALLET=1"
138198
# GOAL="install"
139199
# BITCOIN_CONFIG="--enable-glibc-back-compat --enable-reduce-exports"
140-
# Cross-Mac
200+
141201
- stage: test
202+
name: 'macOS 10.10 [GOAL: deploy] [no functional tests]'
142203
env: >-
143204
HOST=x86_64-apple-darwin14
144-
PACKAGES="cmake imagemagick libcap-dev librsvg2-bin libz-dev libbz2-dev libtiff-tools python-dev python3-setuptools-git"
205+
PACKAGES="cmake imagemagick libcap-dev librsvg2-bin libz-dev libbz2-dev libtiff-tools python3-dev python3-setuptools"
145206
OSX_SDK=10.11
146207
RUN_UNIT_TESTS=false
147208
RUN_FUNCTIONAL_TESTS=false
148-
GOAL="all deploy"
149-
BITCOIN_CONFIG="--enable-gui --enable-reduce-exports --enable-werror"
209+
GOAL="deploy"
210+
BITCOIN_CONFIG="--enable-gui --enable-reduce-exports --enable-werror --disable-online-rust"
211+
212+
- stage: cmake
213+
name: 'CMake Linux'
214+
language: cpp
215+
compiler:
216+
- gcc
217+
addons:
218+
apt:
219+
packages:
220+
- python3-zmq qtbase5-dev qttools5-dev-tools libqt5svg5-dev libssl-dev libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev libdb5.3++-dev libminiupnpc-dev libzmq3-dev libprotobuf-dev protobuf-compiler libqrencode-dev libgmp-dev libsodium-dev cargo
221+
before_install:
222+
- set -o errexit; source .travis/test_03_before_install.sh
223+
install:
224+
before_script:
225+
script:
226+
- set -o errexit; source .travis/cmake_06_script.sh
227+
228+
- stage: cmake
229+
name: 'CMake macOS'
230+
os: osx
231+
osx_image: xcode11.1
232+
language: cpp
233+
compiler:
234+
- clang
235+
addons:
236+
homebrew:
237+
packages:
238+
- python3
239+
- ccache
240+
- autoconf
241+
- automake
242+
- berkeley-db4
243+
- libtool
244+
- boost
245+
- miniupnpc
246+
- openssl
247+
- pkg-config
248+
- protobuf
249+
- qt5
250+
- zmq
251+
- libevent
252+
- qrencode
253+
- gmp
254+
- libsodium
255+
- rust
256+
# Set 'update: true' below until TravisCI updates their macOS build images.
257+
# See https://travis-ci.community/t/macos-build-fails-because-of-homebrew-bundle-unknown-command/7296/16
258+
update: false
259+
before_install:
260+
install:
261+
before_script:
262+
script:
263+
- mkdir -p $TRAVIS_BUILD_DIR/cmake-build-debug && cd $TRAVIS_BUILD_DIR/cmake-build-debug
264+
- cmake -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" $TRAVIS_BUILD_DIR
265+
- cmake --build $TRAVIS_BUILD_DIR/cmake-build-debug --target all -- -j 3

.travis/cmake_06_script.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Copyright (c) 2018 The Bitcoin Core developers
4+
# Distributed under the MIT software license, see the accompanying
5+
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
6+
7+
export LC_ALL=C.UTF-8
8+
9+
BEGIN_FOLD config
10+
mkdir -p $TRAVIS_BUILD_DIR/cmake-build-debug && cd $TRAVIS_BUILD_DIR/cmake-build-debug
11+
cmake -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" $TRAVIS_BUILD_DIR
12+
END_FOLD
13+
14+
BEGIN_FOLD build
15+
cmake --build $TRAVIS_BUILD_DIR/cmake-build-debug --target all -- -j 3
16+
END_FOLD

.travis/lint_04_install.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,10 @@
66

77
export LC_ALL=C
88

9-
travis_retry pip install flake8
9+
travis_retry pip install codespell==1.13.0
10+
travis_retry pip install flake8==3.5.0
11+
travis_retry pip install vulture==0.29
12+
13+
SHELLCHECK_VERSION=v0.6.0
14+
curl -s "https://storage.googleapis.com/shellcheck/shellcheck-${SHELLCHECK_VERSION}.linux.x86_64.tar.xz" | tar --xz -xf - --directory /tmp/
15+
export PATH="/tmp/shellcheck-${SHELLCHECK_VERSION}:${PATH}"

0 commit comments

Comments
 (0)