Skip to content

Commit dfb0784

Browse files
committed
initial commit
0 parents  commit dfb0784

File tree

1,578 files changed

+480713
-0
lines changed

Some content is hidden

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

1,578 files changed

+480713
-0
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src/clientversion.cpp export-subst

.github/ISSUE_TEMPLATE.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!-- This issue tracker is only for technical issues related to Litecoin Core.
2+
3+
General litecoin questions and/or support requests and are best directed to the [litecointalk.io forums](https://litecointalk.io/).
4+
5+
For reporting security issues, please contact the Litecoin developers on the #litecoin-dev Freenode IRC channel or alternatively you can email us at [email protected].
6+
7+
If the node is "stuck" during sync or giving "block checksum mismatch" errors, please ensure your hardware is stable by running memtest and observe CPU temperature with a load-test tool such as linpack before creating an issue! -->
8+
9+
<!-- Describe the issue -->
10+
<!--- What behavior did you expect? -->
11+
12+
<!--- What was the actual behavior (provide screenshots if the issue is GUI-related)? -->
13+
14+
<!--- How reliably can you reproduce the issue, what are the steps to do so? -->
15+
16+
<!-- What version of Litecoin Core are you using, where did you get it (website, self-compiled, etc)? -->
17+
18+
<!-- What type of machine are you observing the error on (OS/CPU and disk type)? -->
19+
20+
<!-- Any extra information that might be useful in the debugging process. -->
21+
<!--- This is normally the contents of a `debug.log` or `config.log` file. Raw text or a link to a pastebin type site are preferred. -->

.gitignore

+118
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
*.tar.gz
2+
3+
*.exe
4+
src/litecoin
5+
src/litecoind
6+
src/litecoin-cli
7+
src/litecoin-tx
8+
src/test/test_litecoin
9+
src/test/test_litecoin_fuzzy
10+
src/qt/test/test_litecoin-qt
11+
12+
# autoreconf
13+
Makefile.in
14+
aclocal.m4
15+
autom4te.cache/
16+
build-aux/config.guess
17+
build-aux/config.sub
18+
build-aux/depcomp
19+
build-aux/install-sh
20+
build-aux/ltmain.sh
21+
build-aux/m4/libtool.m4
22+
build-aux/m4/lt~obsolete.m4
23+
build-aux/m4/ltoptions.m4
24+
build-aux/m4/ltsugar.m4
25+
build-aux/m4/ltversion.m4
26+
build-aux/missing
27+
build-aux/compile
28+
build-aux/test-driver
29+
config.log
30+
config.status
31+
configure
32+
libtool
33+
src/config/bitcoin-config.h
34+
src/config/bitcoin-config.h.in
35+
src/config/stamp-h1
36+
share/setup.nsi
37+
share/qt/Info.plist
38+
39+
src/univalue/gen
40+
41+
src/qt/*.moc
42+
src/qt/moc_*.cpp
43+
src/qt/forms/ui_*.h
44+
45+
src/qt/test/moc*.cpp
46+
47+
src/qt/bitcoin-qt.config
48+
src/qt/bitcoin-qt.creator
49+
src/qt/bitcoin-qt.creator.user
50+
src/qt/bitcoin-qt.files
51+
src/qt/bitcoin-qt.includes
52+
53+
.deps
54+
.dirstamp
55+
.libs
56+
.*.swp
57+
*.*~*
58+
*.bak
59+
*.rej
60+
*.orig
61+
*.pyc
62+
*.o
63+
*.o-*
64+
*.patch
65+
*.a
66+
*.pb.cc
67+
*.pb.h
68+
69+
*.log
70+
*.trs
71+
*.dmg
72+
73+
*.json.h
74+
*.raw.h
75+
76+
#libtool object files
77+
*.lo
78+
*.la
79+
80+
# Compilation and Qt preprocessor part
81+
*.qm
82+
Makefile
83+
litecoin-qt
84+
litecoin-Qt.app
85+
background.tiff*
86+
87+
# Unit-tests
88+
Makefile.test
89+
litecoin-qt_test
90+
91+
# Resources cpp
92+
qrc_*.cpp
93+
# Mac specific
94+
.DS_Store
95+
build
96+
97+
#lcov
98+
*.gcno
99+
*.gcda
100+
/*.info
101+
test_litecoin.coverage/
102+
total.coverage/
103+
coverage_percent.txt
104+
105+
#build tests
106+
linux-coverage-build
107+
linux-build
108+
win32-build
109+
test/config.ini
110+
test/cache/*
111+
112+
!src/leveldb*/Makefile
113+
114+
/doc/doxygen/
115+
116+
libbitcoinconsensus.pc
117+
contrib/devtools/split-debug.sh
118+
/.project

.travis.yml

+88
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
sudo: required
2+
dist: trusty
3+
os: linux
4+
language: minimal
5+
cache:
6+
directories:
7+
- depends/built
8+
- depends/sdk-sources
9+
- $HOME/.ccache
10+
git:
11+
depth: false # full clone for git subtree check, this works around issue #12388
12+
env:
13+
global:
14+
- MAKEJOBS=-j3
15+
- RUN_TESTS=false
16+
- CHECK_DOC=0
17+
- BOOST_TEST_RANDOM=1$TRAVIS_BUILD_ID
18+
- CCACHE_SIZE=100M
19+
- CCACHE_TEMPDIR=/tmp/.ccache-temp
20+
- CCACHE_COMPRESS=1
21+
- BASE_OUTDIR=$TRAVIS_BUILD_DIR/out
22+
- SDK_URL=https://bitcoincore.org/depends-sources/sdks
23+
- WINEDEBUG=fixme-all
24+
- LITECOIN_SCRYPT=0
25+
matrix:
26+
# ARM
27+
- HOST=arm-linux-gnueabihf PACKAGES="g++-arm-linux-gnueabihf python3-pip" DEP_OPTS="NO_QT=1" CHECK_DOC=0 GOAL="install" BITCOIN_CONFIG="--enable-glibc-back-compat --enable-reduce-exports"
28+
# Win32
29+
- HOST=i686-w64-mingw32 DPKG_ADD_ARCH="i386" DEP_OPTS="NO_QT=1" PACKAGES="python3 python3-dev python3-pip nsis g++-mingw-w64-i686 wine1.6" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-reduce-exports" LITECOIN_SCRYPT=1
30+
# Qt4 & system libs
31+
- HOST=x86_64-unknown-linux-gnu PACKAGES="python3-zmq python3-dev python3-pip qt4-dev-tools 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.1++-dev libminiupnpc-dev libzmq3-dev libprotobuf-dev protobuf-compiler libqrencode-dev xvfb" NO_DEPENDS=1 NEED_XVFB=1 RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-zmq --with-incompatible-bdb --enable-glibc-back-compat --enable-reduce-exports --with-gui=qt4 CPPFLAGS=-DDEBUG_LOCKORDER" LITECOIN_SCRYPT=1
32+
# 32-bit + dash
33+
- HOST=i686-pc-linux-gnu PACKAGES="g++-multilib python3-zmq python3-dev python3-pip" DEP_OPTS="NO_QT=1" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-zmq --enable-glibc-back-compat --enable-reduce-exports LDFLAGS=-static-libstdc++" USE_SHELL="/bin/dash" LITECOIN_SCRYPT=1
34+
# Win64
35+
- HOST=x86_64-w64-mingw32 DPKG_ADD_ARCH="i386" DEP_OPTS="NO_QT=1" PACKAGES="python3 python3-dev python3-pip nsis g++-mingw-w64-x86-64 wine1.6" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-reduce-exports --enable-sse2" LITECOIN_SCRYPT=1
36+
# x86_64 Linux (uses qt5 dev package instead of depends Qt to speed up build and avoid timeout)
37+
- HOST=x86_64-unknown-linux-gnu PACKAGES="python3-zmq python3-dev python3-pip qtbase5-dev qttools5-dev-tools protobuf-compiler libdbus-1-dev libharfbuzz-dev" DEP_OPTS="NO_QT=1 NO_UPNP=1 DEBUG=1 ALLOW_HOST_PACKAGES=1" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-zmq --with-gui=qt5 --enable-glibc-back-compat --enable-reduce-exports --enable-sse2 CPPFLAGS=-DDEBUG_LOCKORDER" LITECOIN_SCRYPT=1
38+
# x86_64 Linux, No wallet
39+
- HOST=x86_64-unknown-linux-gnu PACKAGES="python3 python3-dev python3-pip" DEP_OPTS="NO_WALLET=1" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-glibc-back-compat --enable-reduce-exports --enable-sse2" LITECOIN_SCRYPT=1
40+
# Cross-Mac
41+
- HOST=x86_64-apple-darwin11 PACKAGES="cmake imagemagick libcap-dev librsvg2-bin libz-dev libbz2-dev libtiff-tools python-dev" BITCOIN_CONFIG="--enable-gui --enable-reduce-exports --enable-werror --enable-sse2" OSX_SDK=10.11 GOAL="deploy"
42+
43+
before_install:
44+
- export PATH=$(echo $PATH | tr ':' "\n" | sed '/\/opt\/python/d' | tr "\n" ":" | sed "s|::|:|g")
45+
install:
46+
- if [ -n "$DPKG_ADD_ARCH" ]; then sudo dpkg --add-architecture "$DPKG_ADD_ARCH" ; fi
47+
- if [ -n "$PACKAGES" ]; then travis_retry sudo apt-get update; fi
48+
- if [ -n "$PACKAGES" ]; then travis_retry sudo apt-get install --no-install-recommends --no-upgrade -qq $PACKAGES; fi
49+
- if [ "$CHECK_DOC" = 1 -a "$TRAVIS_EVENT_TYPE" = "pull_request" ]; then travis_retry pip3 install flake8 --user; fi
50+
- if [ "$LITECOIN_SCRYPT" = 1 ]; then travis_retry sudo pip3 install litecoin_scrypt --allow-external litecoin_scrypt; fi
51+
before_script:
52+
- if [ "$CHECK_DOC" = 1 -a "$TRAVIS_EVENT_TYPE" = "pull_request" ]; then contrib/devtools/commit-script-check.sh $TRAVIS_COMMIT_RANGE; fi
53+
- if [ "$CHECK_DOC" = 1 ]; then contrib/devtools/git-subtree-check.sh src/crypto/ctaes; fi
54+
- if [ "$CHECK_DOC" = 1 ]; then contrib/devtools/git-subtree-check.sh src/secp256k1; fi
55+
- if [ "$CHECK_DOC" = 1 ]; then contrib/devtools/git-subtree-check.sh src/univalue; fi
56+
- if [ "$CHECK_DOC" = 1 ]; then contrib/devtools/git-subtree-check.sh src/leveldb; fi
57+
- if [ "$CHECK_DOC" = 1 ]; then contrib/devtools/check-doc.py; fi
58+
- if [ "$CHECK_DOC" = 1 ]; then contrib/devtools/check-rpc-mappings.py .; fi
59+
- if [ "$CHECK_DOC" = 1 -a "$TRAVIS_EVENT_TYPE" = "pull_request" ]; then contrib/devtools/lint-all.sh; fi
60+
- unset CC; unset CXX
61+
- mkdir -p depends/SDKs depends/sdk-sources
62+
- if [ -n "$OSX_SDK" -a ! -f depends/sdk-sources/MacOSX${OSX_SDK}.sdk.tar.gz ]; then curl --location --fail $SDK_URL/MacOSX${OSX_SDK}.sdk.tar.gz -o depends/sdk-sources/MacOSX${OSX_SDK}.sdk.tar.gz; fi
63+
- if [ -n "$OSX_SDK" -a -f depends/sdk-sources/MacOSX${OSX_SDK}.sdk.tar.gz ]; then tar -C depends/SDKs -xf depends/sdk-sources/MacOSX${OSX_SDK}.sdk.tar.gz; fi
64+
- if [ -z "$NO_DEPENDS" ]; then make $MAKEJOBS -C depends HOST=$HOST $DEP_OPTS; fi
65+
# Start xvfb if needed, as documented at https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-a-GUI
66+
- if [ "$NEED_XVFB" = 1 ]; then export DISPLAY=:99.0; /sbin/start-stop-daemon --start --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac; fi
67+
script:
68+
- if [ "$CHECK_DOC" = 1 -a "$TRAVIS_REPO_SLUG" = "litecoin-project/litecoin" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then while read LINE; do travis_retry gpg --keyserver hkp://subset.pool.sks-keyservers.net --recv-keys $LINE; done < contrib/verify-commits/trusted-keys; fi
69+
- if [ "$CHECK_DOC" = 1 -a "$TRAVIS_REPO_SLUG" = "litecoin-project/litecoin" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then contrib/verify-commits/verify-commits.sh; fi
70+
- export TRAVIS_COMMIT_LOG=`git log --format=fuller -1`
71+
- if [ -n "$USE_SHELL" ]; then export CONFIG_SHELL="$USE_SHELL"; fi
72+
- OUTDIR=$BASE_OUTDIR/$TRAVIS_PULL_REQUEST/$TRAVIS_JOB_NUMBER-$HOST
73+
- BITCOIN_CONFIG_ALL="--disable-dependency-tracking --prefix=$TRAVIS_BUILD_DIR/depends/$HOST --bindir=$OUTDIR/bin --libdir=$OUTDIR/lib"
74+
- if [ -z "$NO_DEPENDS" ]; then depends/$HOST/native/bin/ccache --max-size=$CCACHE_SIZE; fi
75+
- test -n "$USE_SHELL" && eval '"$USE_SHELL" -c "./autogen.sh"' || ./autogen.sh
76+
- mkdir build && cd build
77+
- ../configure --cache-file=config.cache $BITCOIN_CONFIG_ALL $BITCOIN_CONFIG || ( cat config.log && false)
78+
- make distdir VERSION=$HOST
79+
- cd litecoin-$HOST
80+
- ./configure --cache-file=../config.cache $BITCOIN_CONFIG_ALL $BITCOIN_CONFIG || ( cat config.log && false)
81+
- make $MAKEJOBS $GOAL || ( echo "Build failure. Verbose build follows." && make $GOAL V=1 ; false )
82+
- export LD_LIBRARY_PATH=$TRAVIS_BUILD_DIR/depends/$HOST/lib
83+
- if [ "$RUN_TESTS" = "true" ]; then travis_wait 30 make $MAKEJOBS check VERBOSE=1; fi
84+
- if [ "$TRAVIS_EVENT_TYPE" = "cron" ]; then extended="--extended --exclude feature_pruning,feature_dbcrash"; fi
85+
- if [ "$RUN_TESTS" = "true" ]; then test/functional/test_runner.py --combinedlogslen=4000 --coverage --quiet ${extended}; fi
86+
after_script:
87+
- echo $TRAVIS_COMMIT_RANGE
88+
- echo $TRAVIS_COMMIT_LOG

.tx/config

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[main]
2+
host = https://www.transifex.com
3+
4+
[bitcoin.qt-translation-016x]
5+
file_filter = src/qt/locale/bitcoin_<lang>.ts
6+
source_file = src/qt/locale/bitcoin_en.ts
7+
source_lang = en

0 commit comments

Comments
 (0)