Skip to content

Commit 0a1571d

Browse files
committed
Follow Bitcoin PRs:
- doc: fix git add argument bitcoin#18513 - build: Fix libevent linking for bench_bitcoin binary bitcoin#18397 - script: fix SCRIPT_ERR_SIG_PUSHONLY error string bitcoin#18412 - doc: Comment fix merkle.cpp bitcoin#18379 - log: Fix UB with bench on genesis block bitcoin#15283 - test: Fix mining to an invalid target + ensure that a new block has the correct hash internally bitcoin#18350 - Fix missing header in sync.h bitcoin#18357 - refactor: Fix implicit value conversion in formatPingTime bitcoin#18260 - Fix .gitignore policy in build_msvc directory bitcoin#18108 - build: Fix behavior when ALLOW_HOST_PACKAGES unset bitcoin#18051 - test: Fix p2p_invalid_messages failing in Python 3.8 because of warning bitcoin#17931 - qa: Fix double-negative arg test bitcoin#17893 - build: Fix configure report about qr bitcoin#17547 - log: Fix log message for -par=1 bitcoin#17325 - bench: Fix negative values and zero for -evals flag bitcoin#17267 - depends: fix boost mac cross build with clang 9+ bitcoin#17231 - doc: Fix broken bitcoin-cli examples bitcoin#17119 - doc: fix Makefile target in benchmarking.md bitcoin#17081 - contrib: fix minor typos in makeseeds.py bitcoin#17042 - test: Fix Python Docstring to include all Args. bitcoin#17030 - doc: Fix some misspellings bitcoin#17351 - doc: Doxygen-friendly script/descriptor.h comments bitcoin#16947 - doc: Fix doxygen errors bitcoin#17945 - doc: Doxygen-friendly CuckooCache comments bitcoin#16986 - doc: Add to Doxygen documentation guidelines bitcoin#17873 - depends: Consistent use of package variable bitcoin#17928 - init: Replace URL_WEBSITE with PACKAGE_URL bitcoin#18503 - doc: Add missed copyright headers bitcoin#17691
1 parent 8436547 commit 0a1571d

Some content is hidden

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

68 files changed

+365
-203
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ src/qt/litecoinz-qt.includes
8888
*.qm
8989
Makefile
9090
!depends/Makefile
91-
litecoinz-qt
91+
src/qt/litecoinz-qt
9292
Litecoinz-Qt.app
9393
background.tiff*
9494

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ with no central authority: managing transactions and issuing money are carried
1212
out collectively by the network. LitecoinZ Core is the name of open source
1313
software which enables the use of this currency.
1414

15-
For more information, as well as an immediately useable, binary version of
15+
For more information, as well as an immediately usable, binary version of
1616
the LitecoinZ Core software, see https://litecoinz.org/download/, or read the
1717
[original whitepaper](https://litecoinz.org/litecoinz.pdf).
1818

build_msvc/.gitignore

+13-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,19 @@ packages/*
88
*/Release
99
*/x64
1010
*.vcxproj.user
11-
*.vcxproj
11+
12+
# .vcxproj files that are auto-generated by the msvc-autogen.py script.
13+
libbitcoin_cli/libbitcoin_cli.vcxproj
14+
libbitcoin_common/libbitcoin_common.vcxproj
15+
libbitcoin_crypto/libbitcoin_crypto.vcxproj
16+
libbitcoin_server/libbitcoin_server.vcxproj
17+
libbitcoin_util/libbitcoin_util.vcxproj
18+
libbitcoin_wallet_tool/libbitcoin_wallet_tool.vcxproj
19+
libbitcoin_wallet/libbitcoin_wallet.vcxproj
20+
libbitcoin_zmq/libbitcoin_zmq.vcxproj
21+
bench_bitcoin/bench_bitcoin.vcxproj
22+
libtest_util/libtest_util.vcxproj
23+
1224
*/Win32
1325
libbitcoin_qt/QtGeneratedFiles/*
1426
test_litecoinz-qt/QtGeneratedFiles/*

build_msvc/bitcoin_config.h

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// Copyright (c) 2018-2019 The Bitcoin Core developers
2+
// Copyright (c) 2017-2020 The LitecoinZ Core developers
3+
// Distributed under the MIT software license, see the accompanying
4+
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
5+
16
#ifndef BITCOIN_BITCOIN_CONFIG_H
27
#define BITCOIN_BITCOIN_CONFIG_H
38

build_msvc/msvc-autogen.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/usr/bin/env python3
2+
# Copyright (c) 2016-2019 The Bitcoin Core developers
3+
# Copyright (c) 2017-2020 The LitecoinZ Core developers
4+
# Distributed under the MIT software license, see the accompanying
5+
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
26

37
import os
48
import re

build_msvc/testconsensus/testconsensus.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// Copyright (c) 2018-2019 The Bitcoin Core developers
2+
// Copyright (c) 2017-2020 The LitecoinZ Core developers
3+
// Distributed under the MIT software license, see the accompanying
4+
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
5+
16
#include <iostream>
27

38
// litecoinz includes.

configure.ac

+5-7
Original file line numberDiff line numberDiff line change
@@ -1265,7 +1265,7 @@ if test x$use_pkgconfig = xyes; then
12651265
if test x$use_qr != xno; then
12661266
BITCOIN_QT_CHECK([PKG_CHECK_MODULES([QR], [libqrencode], [have_qrencode=yes], [have_qrencode=no])])
12671267
fi
1268-
if test x$build_bitcoin_cli$build_bitcoind$bitcoin_enable_qt$use_tests != xnononono; then
1268+
if test x$build_bitcoin_cli$build_bitcoind$bitcoin_enable_qt$use_tests$use_bench != xnonononono; then
12691269
PKG_CHECK_MODULES([EVENT], [libevent],, [AC_MSG_ERROR(libevent not found.)])
12701270
if test x$TARGET_OS != xwindows; then
12711271
PKG_CHECK_MODULES([EVENT_PTHREADS], [libevent_pthreads],, [AC_MSG_ERROR(libevent_pthreads not found.)])
@@ -1289,7 +1289,7 @@ else
12891289
AC_CHECK_HEADER([sodium.h],,AC_MSG_ERROR(libsodium headers missing))
12901290
AC_CHECK_LIB([sodium],[sodium_init],SODIUM_LIBS=-lsodium,AC_MSG_ERROR(libsodium missing))
12911291

1292-
if test x$build_bitcoin_cli$build_bitcoind$bitcoin_enable_qt$use_tests != xnononono; then
1292+
if test x$build_bitcoin_cli$build_bitcoind$bitcoin_enable_qt$use_tests$use_bench != xnonononono; then
12931293
AC_CHECK_HEADER([event2/event.h],, AC_MSG_ERROR(libevent headers missing),)
12941294
AC_CHECK_LIB([event],[main],EVENT_LIBS=-levent,AC_MSG_ERROR(libevent missing))
12951295
if test x$TARGET_OS != xwindows; then
@@ -1487,18 +1487,16 @@ if test x$bitcoin_enable_qt != xno; then
14871487
AC_MSG_CHECKING([whether to build GUI with support for QR codes])
14881488
if test x$have_qrencode = xno; then
14891489
if test x$use_qr = xyes; then
1490-
AC_MSG_ERROR("QR support requested but cannot be built. use --without-qrencode")
1490+
AC_MSG_ERROR([QR support requested but cannot be built. Use --without-qrencode])
14911491
fi
1492-
AC_MSG_RESULT(no)
1492+
use_qr=no
14931493
else
14941494
if test x$use_qr != xno; then
1495-
AC_MSG_RESULT(yes)
14961495
AC_DEFINE([USE_QRCODE],[1],[Define if QR support should be compiled in])
14971496
use_qr=yes
1498-
else
1499-
AC_MSG_RESULT(no)
15001497
fi
15011498
fi
1499+
AC_MSG_RESULT([$use_qr])
15021500

15031501
if test x$XGETTEXT = x; then
15041502
AC_MSG_WARN("xgettext is required to update qt translations")

contrib/devtools/circular-dependencies.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/usr/bin/env python3
2+
# Copyright (c) 2016-2019 The Bitcoin Core developers
3+
# Copyright (c) 2017-2020 The LitecoinZ Core developers
4+
# Distributed under the MIT software license, see the accompanying
5+
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
26

37
import sys
48
import re

contrib/devtools/copyright_header.py

+13-8
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
'src/qt/bitcoinstrings.cpp',
2020
'src/chainparamsseeds.h',
2121
# other external copyrights:
22+
'src/reverse_iterator.h',
23+
'src/test/fuzz/FuzzedDataProvider.h',
2224
'src/tinyformat.h',
2325
'test/functional/test_framework/bignum.py',
2426
# python init:
@@ -456,14 +458,14 @@ def get_header_lines(header, start_year, end_year):
456458
def get_cpp_header_lines_to_insert(start_year, end_year):
457459
return reversed(get_header_lines(CPP_HEADER, start_year, end_year))
458460

459-
PYTHON_HEADER = '''
461+
SCRIPT_HEADER = '''
460462
# Copyright (c) %s The LitecoinZ Core developers
461463
# Distributed under the MIT software license, see the accompanying
462464
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
463465
'''
464466

465-
def get_python_header_lines_to_insert(start_year, end_year):
466-
return reversed(get_header_lines(PYTHON_HEADER, start_year, end_year))
467+
def get_script_header_lines_to_insert(start_year, end_year):
468+
return reversed(get_header_lines(SCRIPT_HEADER, start_year, end_year))
467469

468470
################################################################################
469471
# query git for year of last change
@@ -492,17 +494,18 @@ def file_has_hashbang(file_lines):
492494
return False
493495
return file_lines[0][:2] == '#!'
494496

495-
def insert_python_header(filename, file_lines, start_year, end_year):
497+
def insert_script_header(filename, file_lines, start_year, end_year):
496498
if file_has_hashbang(file_lines):
497499
insert_idx = 1
498500
else:
499501
insert_idx = 0
500-
header_lines = get_python_header_lines_to_insert(start_year, end_year)
502+
header_lines = get_script_header_lines_to_insert(start_year, end_year)
501503
for line in header_lines:
502504
file_lines.insert(insert_idx, line)
503505
write_file_lines(filename, file_lines)
504506

505507
def insert_cpp_header(filename, file_lines, start_year, end_year):
508+
file_lines.insert(0, '\n')
506509
header_lines = get_cpp_header_lines_to_insert(start_year, end_year)
507510
for line in header_lines:
508511
file_lines.insert(0, line)
@@ -514,8 +517,8 @@ def exec_insert_header(filename, style):
514517
sys.exit('*** %s already has a copyright by The LitecoinZ Core developers'
515518
% (filename))
516519
start_year, end_year = get_git_change_year_range(filename)
517-
if style == 'python':
518-
insert_python_header(filename, file_lines, start_year, end_year)
520+
if style in ['python', 'shell']:
521+
insert_script_header(filename, file_lines, start_year, end_year)
519522
else:
520523
insert_cpp_header(filename, file_lines, start_year, end_year)
521524

@@ -556,11 +559,13 @@ def insert_cmd(argv):
556559
if not os.path.isfile(filename):
557560
sys.exit("*** bad filename: %s" % filename)
558561
_, extension = os.path.splitext(filename)
559-
if extension not in ['.h', '.cpp', '.cc', '.c', '.py']:
562+
if extension not in ['.h', '.cpp', '.cc', '.c', '.py', '.sh']:
560563
sys.exit("*** cannot insert for file extension %s" % extension)
561564

562565
if extension == '.py':
563566
style = 'python'
567+
elif extension == '.sh':
568+
style = 'shell'
564569
else:
565570
style = 'cpp'
566571
exec_insert_header(filename, style)

contrib/devtools/gen-manpages.sh

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/usr/bin/env bash
2+
# Copyright (c) 2016-2019 The Bitcoin Core developers
3+
# Copyright (c) 2017-2020 The LitecoinZ Core developers
4+
# Distributed under the MIT software license, see the accompanying
5+
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
26

37
export LC_ALL=C
48
TOPDIR=${TOPDIR:-$(git rev-parse --show-toplevel)}

contrib/filter-lcov.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/usr/bin/env python3
2+
# Copyright (c) 2016-2019 The Bitcoin Core developers
3+
# Copyright (c) 2017-2020 The LitecoinZ Core developers
4+
# Distributed under the MIT software license, see the accompanying
5+
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
26

37
import argparse
48

contrib/gitian-build.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/usr/bin/env python3
2+
# Copyright (c) 2016-2019 The Bitcoin Core developers
3+
# Copyright (c) 2017-2020 The LitecoinZ Core developers
4+
# Distributed under the MIT software license, see the accompanying
5+
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
26

37
import argparse
48
import os

contrib/guix/manifest.scm

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ chain for " target " development."))
9494
(base-kernel-headers linux-libre-headers-4.19)
9595
(base-libc glibc-2.27)
9696
(base-gcc (make-gcc-rpath-link gcc-9)))
97-
"Convienience wrapper around MAKE-CROSS-TOOLCHAIN with default values
97+
"Convenience wrapper around MAKE-CROSS-TOOLCHAIN with default values
9898
desirable for building LitecoinZ Core release binaries."
9999
(make-cross-toolchain target
100100
base-gcc-for-libc

contrib/install_db4.sh

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/bin/sh
2+
# Copyright (c) 2016-2019 The Bitcoin Core developers
3+
# Copyright (c) 2017-2020 The LitecoinZ Core developers
4+
# Distributed under the MIT software license, see the accompanying
5+
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
26

37
# Install libdb4.8 (Berkeley DB).
48

contrib/seeds/makeseeds.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def filtermultiport(ips):
123123

124124
def lookup_asn(net, ip):
125125
'''
126-
Look up the asn for an IP (4 or 6) address by querying cymry.com, or None
126+
Look up the asn for an IP (4 or 6) address by querying cymru.com, or None
127127
if it could not be found.
128128
'''
129129
try:
@@ -187,7 +187,7 @@ def main():
187187
# Skip entries with invalid address.
188188
ips = [ip for ip in ips if ip is not None]
189189
print('%s Skip entries with invalid address' % (ip_stats(ips)), file=sys.stderr)
190-
# Skip duplicattes (in case multiple seeds files were concatenated)
190+
# Skip duplicates (in case multiple seeds files were concatenated)
191191
ips = dedup(ips)
192192
print('%s After removing duplicates' % (ip_stats(ips)), file=sys.stderr)
193193
# Skip entries from suspicious hosts.

depends/config.site.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ PKG_CONFIG="`which pkg-config` --static"
5555
# avoid ruining the cache. Sigh.
5656
export PKG_CONFIG_PATH=$depends_prefix/share/pkgconfig:$depends_prefix/lib/pkgconfig
5757
if test -z "@allow_host_packages@"; then
58-
export PKGCONFIG_LIBDIR=
58+
export PKG_CONFIG_LIBDIR=$depends_prefix/lib/pkgconfig
5959
fi
6060

6161
CPPFLAGS="-I$depends_prefix/include/ $CPPFLAGS"

depends/packages/boost.mk

+4-5
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,25 @@ $(package)_config_opts_debug=variant=debug
1010
$(package)_config_opts=--layout=tagged --build-type=complete --user-config=user-config.jam
1111
$(package)_config_opts+=threading=multi link=static -sNO_BZIP2=1 -sNO_ZLIB=1
1212
$(package)_config_opts_linux=threadapi=pthread runtime-link=shared
13-
$(package)_config_opts_darwin=--toolset=darwin-4.2.1 runtime-link=shared
13+
$(package)_config_opts_darwin=--toolset=clang-darwin runtime-link=shared
1414
$(package)_config_opts_mingw32=binary-format=pe target-os=windows threadapi=win32 runtime-link=static
1515
$(package)_config_opts_x86_64_mingw32=address-model=64
1616
$(package)_config_opts_i686_mingw32=address-model=32
1717
$(package)_config_opts_i686_linux=address-model=32 architecture=x86
1818
$(package)_toolset_$(host_os)=gcc
1919
$(package)_archiver_$(host_os)=$($(package)_ar)
20-
$(package)_toolset_darwin=darwin
21-
$(package)_archiver_darwin=$($(package)_libtool)
20+
$(package)_toolset_darwin=clang-darwin
2221
$(package)_config_libraries=chrono,filesystem,system,thread,test
2322
$(package)_cxxflags=-std=c++11 -fvisibility=hidden
2423
$(package)_cxxflags_linux=-fPIC
2524
endef
2625

2726
define $(package)_preprocess_cmds
28-
echo "using $(boost_toolset_$(host_os)) : : $($(package)_cxx) : <cxxflags>\"$($(package)_cxxflags) $($(package)_cppflags)\" <linkflags>\"$($(package)_ldflags)\" <archiver>\"$(boost_archiver_$(host_os))\" <striper>\"$(host_STRIP)\" <ranlib>\"$(host_RANLIB)\" <rc>\"$(host_WINDRES)\" : ;" > user-config.jam
27+
echo "using $($(package)_toolset_$(host_os)) : : $($(package)_cxx) : <cxxflags>\"$($(package)_cxxflags) $($(package)_cppflags)\" <linkflags>\"$($(package)_ldflags)\" <archiver>\"$($(package)_archiver_$(host_os))\" <striper>\"$(host_STRIP)\" <ranlib>\"$(host_RANLIB)\" <rc>\"$(host_WINDRES)\" : ;" > user-config.jam
2928
endef
3029

3130
define $(package)_config_cmds
32-
./bootstrap.sh --without-icu --with-libraries=$(boost_config_libraries)
31+
./bootstrap.sh --without-icu --with-libraries=$($(package)_config_libraries)
3332
endef
3433

3534
define $(package)_build_cmds

doc/benchmarking.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Running
1111
For benchmarks purposes you only need to compile `litecoinz_bench`. Beware of configuring without `--enable-debug` as this would impact
1212
benchmarking by unlatching log printers and lock analysis.
1313

14-
make -C src bench_litecoinz
14+
make -C src litecoinz_bench
1515

1616
After compiling litecoinz-core, the benchmarks can be run with:
1717

0 commit comments

Comments
 (0)