Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
141 commits
Select commit Hold shift + click to select a range
e03d9af
Switch nPrevNodeCount to vNodesSize.
pstratem Aug 31, 2018
3efae95
doc: correct GetDifficulty doc after #13288
fanquake Sep 3, 2018
37cebc1
lint: Make sure we read the command line inputs using utf-8 decoding …
ken2812221 Sep 1, 2018
4fbeaa1
Increase signal to noise in appveyor build output by reducing the MSV…
practicalswift Aug 28, 2018
daec1da
Add new regtest ports in doc following #10825 ports reattributions
Aug 20, 2018
b2611a2
gui: Favor macOS show / hide action in dock menu
promag Sep 2, 2018
4c5da76
Make objects in range declarations immutable by default. Avoid unnece…
practicalswift Jun 18, 2018
7fa2dba
appveyor: Use clcache to speed up build
ken2812221 Aug 26, 2018
537441d
macOS fix: Avoid mapfile due to ancient version of bash shipped with …
practicalswift Aug 30, 2018
a6c4e63
macOS fix: Work around empty (sub)expression error when using BSD grep
practicalswift Aug 30, 2018
7fa7939
macOS fix: Add excludes for checks added in the newer shellcheck vers…
practicalswift Aug 30, 2018
8bcc95f
macOS fix: Check for correct version of flake8 to avoid spurious warn…
practicalswift Aug 30, 2018
138ef74
doc: Change documentation for =0 for non-boolean options
laanwj Aug 29, 2018
02cbe7d
lint: Add spell check linter (codespell)
practicalswift Aug 13, 2018
106ba96
Fix typos reported by codespell
practicalswift Aug 14, 2018
a73bb87
util: Report parse errors in configuration file
laanwj Aug 30, 2018
976f810
test: Add test for config file parsing errors
Sep 6, 2018
08c0c2e
Add descriptor reference documentation
sipa Aug 28, 2018
2bb554a
Adjust TODO link
sipa Aug 28, 2018
f98f1fb
Replace duplcate reference with reference to reference doc
sipa Sep 5, 2018
d6758fc
doxygen: Remove misleading checkpoints comment in CMainParams
Sep 4, 2018
c963faf
[rpc] Remove deprecated validateaddress usage.
jnewbery Feb 20, 2018
a5dba51
[RPC] Remove warning about wallet addresses in createmultisig()
jnewbery Aug 6, 2018
53edfec
[rpc] Remove deprecated sigrawtransaction rpc method.
jnewbery Feb 20, 2018
10d626d
Docs: Add disable-wallet section to OSX build instructions
bitstein Sep 5, 2018
0e0eebd
Remove reference to deprecated RPC call in build instructions
bitstein Sep 5, 2018
451bac7
Explain when reindex-chainstate can be used instead of reindex
Sjors Jul 14, 2018
59a84f3
Integration of property based testing into Bitcoin Core
Christewart Mar 24, 2018
809001c
qa: Read reject reasons from debug log, not p2p messages
Aug 24, 2018
061abe3
don't translate command line options
HashUnlimited Sep 10, 2018
d31f04e
Only log "Using PATH_TO_bitcoin.conf" message on startup if conf file…
leishman Aug 24, 2018
b04152e
Squashed 'src/univalue/' changes from 51d3ab34ba..7890db99d6
Sep 7, 2018
b2a912d
depends: Remove unused Qt 4 dependencies
ken2812221 Sep 10, 2018
1866d32
p2p: Disable BIP 61 by default
Aug 31, 2018
a4738cd
doc: release notes for -enablebip61 default change
Sep 9, 2018
d5b6667
wallet: Set encrypted_batch to nullptr after delete. Avoid double fre…
practicalswift Sep 3, 2018
09fbdc7
build: avoid getifaddrs when unavailable
theuni Jul 19, 2018
05daf90
Preserve a format of RPC command definitions
kostyantyn Aug 20, 2018
858e4f8
tx pool: Use class methods to hide raw map iterator impl details
Jul 29, 2018
dee403c
Let wallet importmulti RPC accept labels for standard scriptPubKeys
ryanofsky Nov 28, 2016
7990045
qa: Fix silent merge conflict in wallet_importmulti
Sep 10, 2018
aea624b
noui: Move handlers to header file
Sep 6, 2018
a9c2b6c
qt: Also log and print messages or questions like bitcoind
Sep 6, 2018
d44dd7c
utils: Use _wfopen and _wreopen on Windows
ken2812221 Jul 26, 2018
6c64f79
Drop unused GetType() from CSizeComputer
Empact Jun 22, 2018
4fa9c80
Drop minor GetSerializeSize template
Empact Jun 15, 2018
400f688
Speed up knapsack_solver_test by not recreating wallet 100 times.
lucash-dev May 12, 2018
113eef6
Scripts and tools: increased timeout downloading
cisba Sep 9, 2018
a8f3926
Drop boost::scoped_array
ken2812221 Jul 21, 2018
fc0fd11
gui: get special folder in unicode
ken2812221 Jul 31, 2018
93278fb
[build] Move dummy wallet into its own .cpp file.
jnewbery Sep 7, 2018
246eb34
[build] remove ENABLE_WALLET ifdef from httprpc.cpp
jnewbery Sep 7, 2018
bfcc7a7
utils: run commands using utf-8 string on Windows
ken2812221 Aug 6, 2018
7fc51b8
build: Move interfaces/* to libbitcoin_server
laanwj Sep 12, 2018
16aeb2f
logging: Replace LogPrint macros with regular functions
Sep 12, 2018
b9cc433
doc: `-help-debug` implies `-help`
laanwj Sep 12, 2018
e7a1dca
Call unicode API on Windows
ken2812221 Aug 6, 2018
b6cdd85
qa: Premine to deterministic address with -disablewallet
Sep 10, 2018
c192d89
qa: Run all tests even if wallet is not compiled
Sep 9, 2018
ee33bea
Remove redundant BIP174 test from rpc_psbt.json
Sep 11, 2018
753b502
Report progress in ReplayBlocks while rolling forward
promag May 23, 2018
95947cd
rpc: Return more specific reject reason for submitblock
Aug 15, 2018
2315044
[build] remove #ifdef ENABLE_WALLET from interfaces/node
jnewbery Sep 12, 2018
5df3b83
utils: Convert fs error messages from multibyte to utf-8
ken2812221 Sep 10, 2018
ad06422
Fix reference to lint-locale-dependence.sh
hebasto Sep 13, 2018
1344f7d
qa: Fix codespell error and have lint-spelling error instead of warn
Sep 11, 2018
63358c8
qa: Remove unneded import_deterministic_coinbase_privkeys overwrite, …
Sep 13, 2018
b291141
[qa] Use correct python index slices in example test
sdaftuar Sep 13, 2018
01e62c4
Add function to close all Db's and reload the databae environment
achow101 Feb 20, 2018
7287eba
After encrypting the wallet, reload the database environment
achow101 Feb 20, 2018
dfc6f18
Move BerkeleyEnvironment deletion from internal method to callsite
achow101 Jul 14, 2018
ade0f60
No longer shutdown after encrypting the wallet
achow101 Feb 20, 2018
e528313
doc: Document -checklevel levels
laanwj Sep 12, 2018
30963d9
build: Remove libssl from LDADD unless gui
Sep 13, 2018
9a93fd0
tests: Reorder tests and move most of extended tests up to normal tests
ken2812221 Sep 15, 2018
9957c3b
use integer division instead of double conversion and multiplication …
Sep 15, 2018
8bcca34
[depends, zmq, doc] upgrade zeromq to 4.2.5 and avoid deprecated zero…
mruddy Jun 30, 2018
18934ca
Changed functional tests which do not require wallets to run without
Sep 15, 2018
335c1ea
Fix crash bug with duplicate inputs within a transaction
sdaftuar Sep 17, 2018
01b68cf
[qa] Test for duplicate inputs within a transaction
sdaftuar Sep 17, 2018
f562a9c
doc: Add historical release notes for 0.16.3
laanwj Sep 18, 2018
4933d56
[rpc] Add getnodeaddresses RPC command
chris-belcher May 2, 2018
8e83d25
tests: Use MakeUnique to construct objects owned by unique_ptrs
practicalswift Sep 21, 2018
1d74c8d
convert C-style (void) parameter lists to C++ style ()
Sep 13, 2018
b887797
Add autogen.sh in ARM Cross-compilation
Sep 20, 2018
ed1193c
init: Remove deprecated args from hidden args
Sep 19, 2018
b271133
wallet: Avoid potential use of unitialized value bnb_used in CWallet:…
practicalswift Jun 27, 2018
d4a4a42
[REST] improve performance for JSON calls
alecalve Sep 23, 2018
4a39362
[RPC] Remove warning for removed estimatefee RPC
jnewbery Sep 23, 2018
956edf7
Consistently use ParseHashV to validate hash inputs in rpc
Empact Jun 8, 2018
4098bbe
tests: Make it possible to run functional tests on Windows
ken2812221 Aug 19, 2018
e1464bb
appveyor: Run functional tests on appveyor
ken2812221 Aug 27, 2018
333cb2d
MOVEONLY: Move versionbits info out of versionbits.o
jtimon Jun 16, 2018
b324000
Don't edit Chainparams after initialization
jtimon Jun 16, 2018
5d7e351
tests: write the notification to different files to avoid race condition
ken2812221 Sep 20, 2018
c10be17
AppVeyor: Move AppVeyor YAML to dot-file-style YAML
MitchellCash Sep 24, 2018
502aca7
lcov: filter /usr/lib/ from coverage reports
Sep 20, 2018
2bd5152
Make fs::path::string() always return utf-8 string
ken2812221 Aug 4, 2018
0046df3
[wallet] Ensure wallet is unlocked before signing
Sep 24, 2018
ae963ac
[wallet] remove redundand restart node
Sep 24, 2018
043b275
[wallet] Remove -usehd
jnewbery Sep 20, 2018
a81e295
[docs] Add release notes for removing `-usehd`
jnewbery Sep 26, 2018
3b7a659
test: Fix broken segwit test
practicalswift Sep 23, 2018
88881be
Fix for incorrect version attr set on functional test segwit block.
JustinTArthur Sep 24, 2018
4b90d45
Strictly enforce instance attrs in critical functional test classes.
JustinTArthur Sep 24, 2018
d510e38
Check for specific tx acceptance failures based on script signature
JustinTArthur Sep 26, 2018
627988a
Document fixed attribute behavior in critical test framework classes.
JustinTArthur Sep 27, 2018
87eeb7d
configure: Make it possible to build only one of bitcoin-cli or bitco…
luke-jr Dec 25, 2014
cc0a196
Bugfix: Only run bitcoin-tx tests when bitcoin-tx is enabled
luke-jr Jan 23, 2018
9889a19
Skip stale tip checking if outbound connections are off or if reindex…
gmaxwell Aug 22, 2018
b2d2473
Consolidate redundant implementations of ParseHashStr
Empact Sep 24, 2018
50e1e40
amount: Move CAmount CENT to unit test header
Sep 17, 2018
5f0fa4e
tests: exclude all tests with difference parameters
ken2812221 Sep 25, 2018
2408f8f
doc: Add GitHub pr template
Sep 13, 2018
2252544
depends: fix bitcoin-qt back-compat with older freetype versions at r…
theuni Sep 28, 2018
bfd6dcd
doxygen: Fix member comments
Sep 26, 2018
9c0304d
[gitian] use versioned unsigned tarballs instead of generically named…
achow101 Sep 26, 2018
98e9b1c
test: Add missing call to skip_if_no_cli()
practicalswift Oct 3, 2018
6da4aad
tests: Make appveyor run with --usecli
practicalswift Oct 3, 2018
82071b8
doc: Split depends installation instructions per arch
Sep 19, 2018
2ab8767
doc: Split build linux dependencies
Sep 19, 2018
f0a95e7
doc: miss install
poiuty Oct 4, 2018
3b7c3e2
Fix typos
rex4539 Oct 4, 2018
90384f3
utils: Convert Windows args to utf-8 string
ken2812221 Aug 5, 2018
a13702c
[docs] path to descriptors.md fixed
meeDamian Oct 7, 2018
6a83cdf
Don't access out of bounds array entry array[sizeof(array)]
Empact Oct 5, 2018
ed5f479
[tests] Remove rpc_zmq.py
jnewbery Oct 7, 2018
4d4bcc4
appveyor: trivial build cache modifications
ken2812221 Sep 17, 2018
b10af32
tests: Allow closed http server in assert_start_raises_init_error
ken2812221 Oct 6, 2018
d44fcfb
qa: Run more tests with wallet disabled
Sep 23, 2018
379ab26
Fix macOS files description
hebasto Oct 7, 2018
d37acb8
doc: RPC documentation
karelbilek Oct 4, 2018
168f688
Include some files currently missed by 'make distclean'.
murrayn Sep 18, 2018
3e65f63
test: allow arguments to be forwarded to flake8 in lint-python.sh
jamesob Jul 12, 2018
85fbb1d
depends: qt: avoid system harfbuzz and bz2
theuni Oct 3, 2018
cce960d
Add missing locks and locking annotations for CAddrMan
practicalswift Oct 8, 2018
7f4d81b
Fix NSI for make deploy
Bushstar Sep 22, 2018
bdf46ef
Docs: Enable static
Bushstar Oct 9, 2018
0a02f37
Remove -vbparams from init
Bushstar Oct 9, 2018
f4124c1
pushKV for bespoke RPC calls
Bushstar Oct 9, 2018
08fcb13
build: bump version to 0.17.99
laanwj Aug 13, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
version: '{branch}.{build}'
skip_tags: true
image: Visual Studio 2017
configuration: Release
platform: x64
environment:
APPVEYOR_SAVE_CACHE_ON_ERROR: true
CLCACHE_SERVER: 1
PACKAGES: boost-filesystem boost-signals2 boost-test libevent openssl zeromq berkeleydb secp256k1 leveldb
PYTHONIOENCODING: utf-8
cache:
- C:\tools\vcpkg\installed
- C:\Users\appveyor\clcache
init:
- cmd: set PATH=C:\Python36-x64;C:\Python36-x64\Scripts;%PATH%
install:
- cmd: pip install git+https://github.com/frerich/clcache.git
# Disable zmq test for now since python zmq library on Windows would cause Access violation sometimes.
# - cmd: pip install zmq
- ps: $packages = $env:PACKAGES -Split ' '
- ps: for ($i=0; $i -lt $packages.length; $i++) {
$env:ALL_PACKAGES += $packages[$i] + ":" + $env:PLATFORM + "-windows-static "
}
- cmd: git -C C:\Tools\vcpkg pull # This is a temporary fix, can be removed after appveyor update its image to include Microsoft/vcpkg#4046
- cmd: C:\Tools\vcpkg\bootstrap-vcpkg.bat
- cmd: vcpkg remove --recurse --outdated
- cmd: vcpkg install %ALL_PACKAGES%
- cmd: del /s /q C:\Tools\vcpkg\installed\%PLATFORM%-windows-static\debug # Remove unused debug library
before_build:
- ps: clcache -M 536870912
- cmd: python build_msvc\msvc-autogen.py
- ps: $files = (Get-ChildItem -Recurse | where {$_.extension -eq ".vcxproj"}).FullName
- ps: for (${i} = 0; ${i} -lt ${files}.length; ${i}++) {
${content} = (Get-Content ${files}[${i}]);
${content} = ${content}.Replace("</RuntimeLibrary>", "</RuntimeLibrary><DebugInformationFormat>None</DebugInformationFormat>");
${content} = ${content}.Replace("<WholeProgramOptimization>true", "<WholeProgramOptimization>false");
${content} = ${content}.Replace("NDEBUG;", "");
Set-Content ${files}[${i}] ${content};
}
- ps: Start-Process clcache-server
- ps: fsutil behavior set disablelastaccess 0 # Enable Access time feature on Windows (for clcache)
build_script:
- cmd: msbuild /p:TrackFileAccess=false /p:CLToolExe=clcache.exe build_msvc\bitcoin.sln /m /v:q /nowarn:C4244;C4267;C4715 /nologo
after_build:
- ps: fsutil behavior set disablelastaccess 0 # Disable Access time feature on Windows (better performance)
- ps: clcache -z
before_test:
- ps: ${conf_ini} = (Get-Content([IO.Path]::Combine(${env:APPVEYOR_BUILD_FOLDER}, "test", "config.ini.in")))
- ps: ${conf_ini} = ${conf_ini}.Replace("@abs_top_srcdir@", ${env:APPVEYOR_BUILD_FOLDER})
- ps: ${conf_ini} = ${conf_ini}.Replace("@abs_top_builddir@", ${env:APPVEYOR_BUILD_FOLDER})
- ps: ${conf_ini} = ${conf_ini}.Replace("@EXEEXT@", ".exe")
- ps: ${conf_ini} = ${conf_ini}.Replace("@ENABLE_WALLET_TRUE@", "")
- ps: ${conf_ini} = ${conf_ini}.Replace("@BUILD_BITCOIN_CLI_TRUE@", "")
- ps: ${conf_ini} = ${conf_ini}.Replace("@BUILD_BITCOIND_TRUE@", "")
- ps: ${conf_ini} = ${conf_ini}.Replace("@ENABLE_ZMQ_TRUE@", "")
- ps: ${utf8} = New-Object System.Text.UTF8Encoding ${false}
- ps: '[IO.File]::WriteAllLines([IO.Path]::Combine(${env:APPVEYOR_BUILD_FOLDER}, "test", "config.ini"), ${conf_ini}, ${utf8})'
- ps: move "build_msvc\${env:PLATFORM}\${env:CONFIGURATION}\*.exe" src
test_script:
- cmd: src\test_bitcoin.exe
- ps: src\bench_bitcoin.exe -evals=1 -scaling=0
- ps: python test\util\bitcoin-util-test.py
- cmd: python test\util\rpcauth-test.py
- cmd: python test\functional\test_runner.py --force --quiet --combinedlogslen=4000 --exclude wallet_multiwallet
deploy: off
31 changes: 31 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
Pull requests without a rationale and clear improvement may be closed
immediately.

Please provide clear motivation for your patch and explain how it improves
Bitcoin Core user experience or Bitcoin Core developer experience
significantly.

* Any test improvements or new tests that improve coverage are always welcome.
* All other changes should have accompanying unit tests (see `src/test/`) or
functional tests (see `test/`). Contributors should note which tests cover
modified code. If no tests exist for a region of modified code, new tests
should accompany the change.
* Bug fixes are most welcome when they come with steps to reproduce or an
explanation of the potential issue as well as reasoning for the way the bug
was fixed.
* Features are welcome, but might be rejected due to design or scope issues.
If a feature is based on a lot of dependencies, contributors should first
consider building the system outside of Bitcoin Core, if possible.
* Refactoring changes are only accepted if they are required for a feature or
bug fix or otherwise improve developer experience significantly. For example,
most "code style" refactoring changes require a thorough explanation why they
are useful, what downsides they have and why they *significantly* improve
developer experience or avoid serious programming bugs. Note that code style
is often a subjective matter. Unless they are explicitly mentioned to be
preferred in the [developer notes](/doc/developer-notes.md), stylistic code
changes are usually rejected.

Bitcoin Core has a thorough review process and even the most trivial change
needs to pass a lot of eyes and requires non-zero or even substantial time
effort to review. There is a huge lack of active reviewers on the project, so
patches often sit for a long time.
4 changes: 2 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ $(BITCOIN_CLI_BIN): FORCE
$(MAKE) -C src $(@F)

if USE_LCOV
LCOV_FILTER_PATTERN=-p "/usr/include/" -p "src/leveldb/" -p "src/bench/" -p "src/univalue" -p "src/crypto/ctaes" -p "src/secp256k1"
LCOV_FILTER_PATTERN=-p "/usr/include/" -p "/usr/lib/" -p "src/leveldb/" -p "src/bench/" -p "src/univalue" -p "src/crypto/ctaes" -p "src/secp256k1"

baseline.info:
$(LCOV) -c -i -d $(abs_builddir)/src -o $@
Expand Down Expand Up @@ -294,5 +294,5 @@ clean-docs:

clean-local: clean-docs
rm -rf coverage_percent.txt test_bitcoin.coverage/ total.coverage/ test/tmp/ cache/ $(OSX_APP)
rm -rf test/functional/__pycache__ test/functional/test_framework/__pycache__ test/cache
rm -rf test/functional/__pycache__ test/functional/test_framework/__pycache__ test/cache share/rpcauth/__pycache__

40 changes: 0 additions & 40 deletions appveyor.yml

This file was deleted.

8 changes: 4 additions & 4 deletions build_msvc/libbitcoinconsensus/libbitcoinconsensus.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>false</SDLCheck>
<AdditionalIncludeDirectories>..\..\src;</AdditionalIncludeDirectories>
<ExceptionHandling>false</ExceptionHandling>
<ExceptionHandling>Sync</ExceptionHandling>
<SuppressStartupBanner>false</SuppressStartupBanner>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
</ClCompile>
Expand All @@ -144,7 +144,7 @@
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>false</SDLCheck>
<AdditionalIncludeDirectories>..\..\src;</AdditionalIncludeDirectories>
<ExceptionHandling>false</ExceptionHandling>
<ExceptionHandling>Sync</ExceptionHandling>
<SuppressStartupBanner>false</SuppressStartupBanner>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
</ClCompile>
Expand All @@ -163,7 +163,7 @@
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>false</SDLCheck>
<AdditionalIncludeDirectories>..\..\src;</AdditionalIncludeDirectories>
<ExceptionHandling>false</ExceptionHandling>
<ExceptionHandling>Sync</ExceptionHandling>
<SuppressStartupBanner>false</SuppressStartupBanner>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
</ClCompile>
Expand All @@ -184,7 +184,7 @@
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>false</SDLCheck>
<AdditionalIncludeDirectories>..\..\src;</AdditionalIncludeDirectories>
<ExceptionHandling>false</ExceptionHandling>
<ExceptionHandling>Sync</ExceptionHandling>
<SuppressStartupBanner>false</SuppressStartupBanner>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
</ClCompile>
Expand Down
60 changes: 51 additions & 9 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
dnl require autoconf 2.60 (AS_ECHO/AS_ECHO_N)
AC_PREREQ([2.60])
define(_CLIENT_VERSION_MAJOR, 0)
define(_CLIENT_VERSION_MINOR, 16)
define(_CLIENT_VERSION_MINOR, 17)
define(_CLIENT_VERSION_REVISION, 99)
define(_CLIENT_VERSION_BUILD, 0)
define(_CLIENT_VERSION_IS_RELEASE, false)
Expand Down Expand Up @@ -131,6 +131,12 @@ AC_ARG_ENABLE(gui-tests,
[use_gui_tests=$enableval],
[use_gui_tests=$use_tests])

AC_ARG_WITH([rapidcheck],
[AS_HELP_STRING([--with-rapidcheck],
[enable RapidCheck property based tests (default is yes if librapidcheck is found)])],
[use_rapidcheck=$withval],
[use_rapidcheck=auto])

AC_ARG_ENABLE(bench,
AS_HELP_STRING([--disable-bench],[do not compile benchmarks (default is not to compile)]),
[use_bench=$enableval],
Expand Down Expand Up @@ -401,6 +407,18 @@ AC_ARG_WITH([utils],
[build_bitcoin_utils=$withval],
[build_bitcoin_utils=yes])

AC_ARG_ENABLE([util-cli],
[AS_HELP_STRING([--enable-util-cli],
[build feathercoin-cli])],
[build_bitcoin_cli=$enableval],
[build_bitcoin_cli=$build_bitcoin_utils])

AC_ARG_ENABLE([util-tx],
[AS_HELP_STRING([--enable-util-tx],
[build feathercoin-tx])],
[build_bitcoin_tx=$enableval],
[build_bitcoin_tx=$build_bitcoin_utils])

AC_ARG_WITH([libs],
[AS_HELP_STRING([--with-libs],
[build libraries (default=yes)])],
Expand Down Expand Up @@ -736,6 +754,10 @@ fi

AC_CHECK_HEADERS([endian.h sys/endian.h byteswap.h stdio.h stdlib.h unistd.h strings.h sys/types.h sys/stat.h sys/select.h sys/prctl.h])

AC_CHECK_DECLS([getifaddrs, freeifaddrs],,,
[#include <sys/types.h>
#include <ifaddrs.h>]
)
AC_CHECK_DECLS([strnlen])

# Check for daemon(3), unrelated to --with-daemon (although used by it)
Expand Down Expand Up @@ -885,7 +907,7 @@ BITCOIN_QT_INIT
dnl sets $bitcoin_enable_qt, $bitcoin_enable_qt_test, $bitcoin_enable_qt_dbus
BITCOIN_QT_CONFIGURE([$use_pkgconfig])

if test x$build_bitcoin_utils$build_bitcoind$bitcoin_enable_qt$use_tests$use_bench = xnonononono; then
if test x$build_bitcoin_cli$build_bitcoin_tx$build_bitcoind$bitcoin_enable_qt$use_tests$use_bench = xnononononono; then
use_boost=no
else
use_boost=yes
Expand Down Expand Up @@ -1073,7 +1095,7 @@ if test x$use_pkgconfig = xyes; then
if test x$use_qr != xno; then
BITCOIN_QT_CHECK([PKG_CHECK_MODULES([QR], [libqrencode], [have_qrencode=yes], [have_qrencode=no])])
fi
if test x$build_bitcoin_utils$build_bitcoind$bitcoin_enable_qt$use_tests != xnononono; then
if test x$build_bitcoin_cli$build_bitcoin_tx$build_bitcoind$bitcoin_enable_qt$use_tests != xnonononono; then
PKG_CHECK_MODULES([EVENT], [libevent],, [AC_MSG_ERROR(libevent not found.)])
if test x$TARGET_OS != xwindows; then
PKG_CHECK_MODULES([EVENT_PTHREADS], [libevent_pthreads],, [AC_MSG_ERROR(libevent_pthreads not found.)])
Expand All @@ -1098,7 +1120,7 @@ else
AC_CHECK_HEADER([openssl/ssl.h],, AC_MSG_ERROR(libssl headers missing),)
AC_CHECK_LIB([ssl], [main],SSL_LIBS=-lssl, AC_MSG_ERROR(libssl missing))

if test x$build_bitcoin_utils$build_bitcoind$bitcoin_enable_qt$use_tests != xnononono; then
if test x$build_bitcoin_cli$build_bitcoin_tx$build_bitcoind$bitcoin_enable_qt$use_tests != xnonononono; then
AC_CHECK_HEADER([event2/event.h],, AC_MSG_ERROR(libevent headers missing),)
AC_CHECK_LIB([event],[main],EVENT_LIBS=-levent,AC_MSG_ERROR(libevent missing))
if test x$TARGET_OS != xwindows; then
Expand Down Expand Up @@ -1143,11 +1165,27 @@ AC_CHECK_DECLS([EVP_MD_CTX_new],,,[AC_INCLUDES_DEFAULT
])
CXXFLAGS="${save_CXXFLAGS}"

dnl RapidCheck Property Based Testing

enable_property_tests=no
if test "x$use_rapidcheck" = xauto; then
AC_CHECK_HEADERS([rapidcheck.h], [enable_property_tests=yes])
elif test "x$use_rapidcheck" != xno; then
enable_property_tests=yes
fi

RAPIDCHECK_LIBS=
if test "x$enable_property_tests" = xyes; then
RAPIDCHECK_LIBS=-lrapidcheck
fi
AC_SUBST(RAPIDCHECK_LIBS)
AM_CONDITIONAL([ENABLE_PROPERTY_TESTS], [test x$enable_property_tests = xyes])

dnl univalue check

need_bundled_univalue=yes

if test x$build_bitcoin_utils$build_bitcoind$bitcoin_enable_qt$use_tests$use_bench = xnonononono; then
if test x$build_bitcoin_cli$build_bitcoin_tx$build_bitcoind$bitcoin_enable_qt$use_tests$use_bench = xnononononono; then
need_bundled_univalue=no
else

Expand Down Expand Up @@ -1197,9 +1235,13 @@ AC_MSG_CHECKING([whether to build feathercoind])
AM_CONDITIONAL([BUILD_BITCOIND], [test x$build_bitcoind = xyes])
AC_MSG_RESULT($build_bitcoind)

AC_MSG_CHECKING([whether to build utils (feathercoin-cli feathercoin-tx)])
AM_CONDITIONAL([BUILD_BITCOIN_UTILS], [test x$build_bitcoin_utils = xyes])
AC_MSG_RESULT($build_bitcoin_utils)
AC_MSG_CHECKING([whether to build feathercoin-cli])
AM_CONDITIONAL([BUILD_BITCOIN_CLI], [test x$build_bitcoin_cli = xyes])
AC_MSG_RESULT($build_bitcoin_cli)

AC_MSG_CHECKING([whether to build feathercoin-tx])
AM_CONDITIONAL([BUILD_BITCOIN_TX], [test x$build_bitcoin_tx = xyes])
AC_MSG_RESULT($build_bitcoin_tx)

AC_MSG_CHECKING([whether to build libraries])
AM_CONDITIONAL([BUILD_BITCOIN_LIBS], [test x$build_bitcoin_libs = xyes])
Expand Down Expand Up @@ -1325,7 +1367,7 @@ else
AC_MSG_RESULT([no])
fi

if test x$build_bitcoin_utils$build_bitcoin_libs$build_bitcoind$bitcoin_enable_qt$use_bench$use_tests = xnononononono; then
if test x$build_bitcoin_cli$build_bitcoin_tx$build_bitcoin_libs$build_bitcoind$bitcoin_enable_qt$use_bench$use_tests = xnonononononono; then
AC_MSG_ERROR([No targets! Please specify at least one of: --with-utils --with-libs --with-daemon --with-gui --enable-bench or --enable-tests])
fi

Expand Down
2 changes: 1 addition & 1 deletion contrib/debian/copyright
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Comment: Site: https://bitcointalk.org/?topic=1756.0
Files: src/qt/res/icons/proxy.png
src/qt/res/src/proxy.svg
Copyright: Cristian Mircea Messel
Licese: public-domain
License: public-domain


License: Expat
Expand Down
4 changes: 2 additions & 2 deletions contrib/devtools/optimize-pngs.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def content_hash(filename):
pngcrush = 'pngcrush'
git = 'git'
folders = ["src/qt/res/movies", "src/qt/res/icons", "share/pixmaps"]
basePath = subprocess.check_output([git, 'rev-parse', '--show-toplevel'], universal_newlines=True).rstrip('\n')
basePath = subprocess.check_output([git, 'rev-parse', '--show-toplevel'], universal_newlines=True, encoding='utf8').rstrip('\n')
totalSaveBytes = 0
noHashChange = True

Expand All @@ -50,7 +50,7 @@ def content_hash(filename):
sys.exit(0)

#verify
if "Not a PNG file" in subprocess.check_output([pngcrush, "-n", "-v", file_path], stderr=subprocess.STDOUT, universal_newlines=True):
if "Not a PNG file" in subprocess.check_output([pngcrush, "-n", "-v", file_path], stderr=subprocess.STDOUT, universal_newlines=True, encoding='utf8'):
print("PNG file "+file+" is corrupted after crushing, check out pngcursh version")
sys.exit(1)

Expand Down
Loading