Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch up with Core until commit f617e05c38c9c7e663b824fefe5329cc5cbbf26a #620

Merged
merged 425 commits into from
May 16, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
425 commits
Select commit Hold shift + click to select a range
ee0b7c4
build: Pin to specific versions of Python packages we install from Py…
practicalswift Oct 16, 2018
23419e4
Merge #14335: net: refactor: cleanup ThreadSocketHandler
laanwj Oct 16, 2018
c269209
[tests] Small fixups before deprecating generate
jnewbery Oct 11, 2018
b191c7d
doc: add comment explaining recentRejects-DoS behavior
jamesob Oct 9, 2018
27bf14f
Merge #14495: build: Warn (don't fail!) on spelling errors
sipa Oct 17, 2018
3036faf
Merge #14496: build: Pin to specific versions of Python packages we i…
laanwj Oct 17, 2018
eeeaa29
descriptors.md: Refer to descriptors as describing instead of matching
ryanofsky Oct 17, 2018
816fab9
Merge #14450: qt: Fix QCompleter popup regression
jonasschnelli Oct 17, 2018
2b91e42
[docs] Add release note for removing getwitnessaddress
jnewbery Sep 23, 2018
041224a
Merge #14472: [doc] getblocktemplate: use SegWit in example
laanwj Oct 18, 2018
9c5f0d5
Merge #13878: utils: Add fstream wrapper to allow to pass unicode fil…
laanwj Oct 18, 2018
d98777f
Merge #14146: wallet: Remove trailing separators from -walletdir arg
laanwj Oct 18, 2018
96f6dc9
Avoid triggering undefined behaviour in base_uint<BITS>::bits()
practicalswift Oct 18, 2018
32c5f18
Merge #14177: qt: Set C locale for amountWidget
laanwj Oct 18, 2018
fe23553
Merge #14374: qt: Add "Blocksdir" to Debug window
laanwj Oct 18, 2018
b6b9915
Textual improvements
merland Oct 18, 2018
369244f
utils: Fix broken Windows filelock
ken2812221 Oct 7, 2018
3715b24
Merge #14510: Avoid triggering undefined behaviour in base_uint<BITS>…
laanwj Oct 18, 2018
bc60c61
Avoid 1 << 31 (UB) in calculation of SEQUENCE_LOCKTIME_DISABLE_FLAG
practicalswift Oct 18, 2018
aab8172
[tests] Add generate method to TestNode
jnewbery Oct 5, 2018
c9f0295
[wallet] Deprecate the generate RPC method
jnewbery Oct 11, 2018
1fb3c16
Add `doc/bitcoin-conf.md`
hebasto Oct 16, 2018
fc4db35
wallet: Add ListWalletDir utility
promag Sep 21, 2018
d1b03b8
interfaces: Add getWalletDir and listWalletDir to Node
promag Sep 21, 2018
cc33773
rpc: Add listwalletdir RPC
promag Sep 24, 2018
0cb3cad
qa: Add tests for listwalletdir RPC
promag Sep 24, 2018
d56a068
docs: Add release notes for listwalletdir RPC
promag Sep 26, 2018
321decf
rpc: Fix wallet unload during walletpassphrase timeout
promag Oct 9, 2018
8eb2cd1
Merge #14291: wallet: Add ListWalletDir utility function
laanwj Oct 18, 2018
6d247b1
gitignore contents of db4 folder
murtyjones Sep 24, 2018
33ae985
doc: Update OpenBSD build guide for 6.4
fanquake Oct 19, 2018
d387507
Merge #14465: tests: Stop node before removing the notification file
sipa Oct 19, 2018
a4edb16
ZMQ: add options to configure outbound message high water mark, aka S…
mruddy Aug 25, 2018
3be209d
rpc: Always throw in getblockstats if -txindex is required
promag Oct 19, 2018
7e18673
Fix typo
kristapsk Oct 19, 2018
8010ded
Merge #14524: Trivial: fix typo
sipa Oct 20, 2018
b14db5a
Merge #14513: Avoid 1 << 31 (UB) in calculation of SEQUENCE_LOCKTIME_…
sipa Oct 20, 2018
b2863c0
Merge #14426: utils: Fix broken Windows filelock
sipa Oct 20, 2018
dc1e542
Merge #14474: bitcoin-tx: Use constant for n pubkeys check
sipa Oct 20, 2018
e754c6e
Merge #14011: Disable wallet and address book Qt tests on macOS minim…
sipa Oct 20, 2018
91482e5
Merge #14460: tests: Improve 'CAmount' tests
sipa Oct 20, 2018
544f323
Merge #14512: docs: Textual improvements in README.md
sipa Oct 20, 2018
8640631
docs: Document lint tests
Jul 19, 2018
d433239
Merge #14456: test: forward timeouts properly in send_blocks_and_test
Oct 20, 2018
6746a89
Merge #14497: docs: Add doc/bitcoin-conf.md
laanwj Oct 20, 2018
fadffae
Revert "Make qt wallet test compatible with qt4"
Oct 20, 2018
8907df9
qa: Ensure wallet unload during walletpassphrase timeout
promag Oct 19, 2018
585b47c
rpc: Prevent concurrent savemempool
promag Mar 30, 2018
fa4bcaf
travis: Compile once on xenial
Oct 20, 2018
96c409c
Merge #14527: qa: Revert "Make qt wallet test compatible with qt4"
laanwj Oct 20, 2018
43719e0
[macOS] Remove DS_Store WindowBounds bytes object
jonasschnelli Oct 18, 2018
7579560
Merge #13909: validation: Pass chainparams in AcceptToMemoryPoolWorke…
Oct 21, 2018
73cddb3
Merge #14526: docs: Document lint tests
Oct 21, 2018
5c25409
Merge #14161: doc/descriptors.md tweaks
Oct 21, 2018
2c6281f
Add key origin support to descriptors
sipa Jul 18, 2018
ff37459
Add tests for key origin support
sipa Sep 3, 2018
8afb166
Update documentation to incude origin information
sipa Oct 12, 2018
96c509e
show the progress of functional test
isghe Oct 17, 2018
38b9850
qt: cleanup: Move BIP70 functions together in paymentserver
laanwj Nov 9, 2017
fbb643d
Add BIP70 deprecation warning
jameshilliard Oct 9, 2018
48439b3
Don't link SSL_LIBS with GUI unless BIP70 is enabled
jameshilliard Oct 10, 2018
5918204
Removed explicit mention of storage requirement (squashed)
merland Oct 18, 2018
0a8f519
Merge #14150: Add key origin support to descriptors
sipa Oct 22, 2018
b3f377d
Merge #14511: doc: Remove explicit storage requirement from README.md
sipa Oct 23, 2018
ab9aca2
[rpc] add 'getnewaddress' hint to 'generatetoaddress' help text.
jnewbery Oct 23, 2018
3668bb3
Merge #14468: [wallet] Deprecate generate RPC method
Oct 23, 2018
94cf1ec
Merge #14417: Fix listreceivedbyaddress not taking address as a string
Oct 23, 2018
5473e25
Merge #14444: Add compile time checking for cs_main locks which we as…
Oct 24, 2018
e895fdc
Merge #11634: wallet: Add missing cs_wallet/cs_KeyStore locks to wallet
Oct 24, 2018
9dda5fd
Merge #14296: [wallet] Remove addwitnessaddress
Oct 24, 2018
2e15fa1
Merge #12842: Prevent concurrent savemempool
laanwj Oct 24, 2018
9886590
Merge #14451: Add BIP70 deprecation warning and allow building GUI wi…
laanwj Oct 24, 2018
a74ed3a
Merge #14453: rpc: Fix wallet unload during walletpassphrase timeout
laanwj Oct 24, 2018
2d796fa
wallet: Fix duplicate fileid
ken2812221 Sep 25, 2018
4ea7732
tests: add test case for loading copied wallet twice
ken2812221 Oct 24, 2018
6241eb3
Merge #14504: tests: show the progress of functional tests
Oct 24, 2018
2b88f67
Merge #14320: [bugfix] wallet: Fix duplicate fileid detection
laanwj Oct 24, 2018
4dca7d0
appveyor: Enable multiwallet test
ken2812221 Oct 24, 2018
613fc95
Merge #14559: appveyor: Enable multiwallet tests
Oct 24, 2018
f6ed748
Add SegWit support to importmulti with some ProcessImport cleanup
meshcollider Oct 9, 2018
353c064
Fix typo in test_framework/blocktools
meshcollider Oct 9, 2018
1753d21
Add release notes for importmulti segwit change
meshcollider Oct 15, 2018
201451b
Make getaddressinfo return solvability
meshcollider Oct 17, 2018
c11875c
Add segwit address tests for importmulti
meshcollider Oct 9, 2018
01a4c09
wallet: Add WalletLocation utility class
promag Sep 28, 2018
65f3672
wallet: Refactor to use WalletLocation
promag Sep 28, 2018
fbaccbf
build: Fix Qt link order for Windows build
ken2812221 Oct 25, 2018
754a00d
Merge #14416: Fix OSX dmg issue (10.12 to 10.14)
laanwj Oct 25, 2018
ed2e183
Remove fs::relative call and fix listwalletdir tests
promag Oct 20, 2018
9d45415
Merge #14518: rpc: Always throw in getblockstats if -txindex is required
laanwj Oct 26, 2018
d50c996
Merge #14561: Remove fs::relative call and fix listwalletdir tests
laanwj Oct 26, 2018
fa78a2f
[tests] Test that nodes respond to getdata with notfound
Sep 16, 2018
ae85c8d
Merge #14568: build: Fix Qt link order for Windows build
Oct 26, 2018
f4e4ea1
Merge #13515: travis: Enable qt for all jobs
Oct 26, 2018
15db77f
Don't rely on locale dependent functions in base_blob<BITS>::SetHex(.…
practicalswift Oct 26, 2018
c70f9c0
Merge #14571: [tests] Test that nodes respond to getdata with notfound
Oct 27, 2018
efaf2d8
Merge #13783: validation: Pass tx pool reference into CheckSequenceLocks
Oct 27, 2018
36c8e68
Various textual improvements in build docs
merland Oct 25, 2018
04972fe
Remove unused `adjustedTime` parameter
hebasto Oct 23, 2018
643b25d
Merge #14583: docs: Textual improvements in build docs
Oct 28, 2018
f1e2f2a
Merge #14585: refactor: remove usage of locale dependent std::isspace
Oct 28, 2018
cf2f430
gui: explicitly disable "Dark Mode" appearance on macOS
fanquake Oct 28, 2018
d8bf107
Bugfix: RPC: Add address_type named param for createmultisig
luke-jr Oct 28, 2018
29f429d
Merge #14596: Bugfix: RPC: Add address_type named param for createmul…
Oct 29, 2018
0e6de3a
added details about commit messages
merland Oct 29, 2018
8711cc0
qt: Improve BitcoinAmountField class
hebasto Oct 30, 2018
4bd125f
tests: Print dots by default
ken2812221 Oct 30, 2018
a16f44c
qt: Remove "Pay only required fee" checkbox
hebasto Oct 30, 2018
053b6f4
align items in contrib init
morenoh149 Oct 30, 2018
fa77aaa
doc: Add external interface consistency guarantees
Oct 28, 2018
0a04667
FreeBSD: Document Python 3 requirement for 'gmake check'
murrayn Oct 31, 2018
b312579
Merge #14454: Add SegWit support to importmulti
laanwj Oct 31, 2018
53bb6be
Remove obj_c for macOS Dock icon setting
hebasto Oct 31, 2018
9605bbd
Make clear function argument case in dev notes
dongcarl Nov 1, 2018
d38a509
Merge #14600: docs: Clarify commit message guidelines
laanwj Nov 1, 2018
08a57d5
Merge #14593: gui: explicitly disable "Dark Mode" appearance on macOS
laanwj Nov 1, 2018
6a095bc
Merge #14569: tests: Print dots by default in functional tests
Nov 1, 2018
9899e65
Merge #14617: FreeBSD: Document Python 3 requirement for 'gmake check'
laanwj Nov 1, 2018
f6df989
Merge #14197: [psbt] Convert non-witness UTXOs to witness if witness …
laanwj Nov 1, 2018
f69d922
Merge #14592: doc: Add external interface consistency guarantees
laanwj Nov 1, 2018
1e0f3c4
macOS: disable AppNap during sync
krab Nov 1, 2018
5049f7f
Merge #14625: Make clear function argument case in dev notes
laanwj Nov 1, 2018
086fc83
Tests: Fix a comment
raxomukus Nov 1, 2018
3fd7e76
[tests] Move deterministic address import to setup_nodes
jnewbery Oct 16, 2018
e4dc39b
Replace platform dependent type with proper const
hebasto Oct 11, 2018
bafb921
Remove duplicated code
hebasto Oct 12, 2018
51e5ef3
Merge #14377: check that a separator is found for psbt inputs, output…
laanwj Nov 1, 2018
5352030
Avoid using numeric_limits for sequence numbers and lock times
ryanofsky Oct 31, 2018
5aa31f6
tests: add utility to assert node memory usage hasn't increased
jamesob Oct 19, 2018
62f94d3
tests: add P2PConnection.send_raw_message
jamesob Oct 19, 2018
d20a9fa
tests: add tests for invalid P2P messages
jamesob Oct 19, 2018
fe5d22b
More concise conversion of CDataStream to string
gwillen Oct 26, 2018
4f3f5cb
Remove redundant txConst parameter to FillPSBT
gwillen Oct 26, 2018
65166d4
New PartiallySignedTransaction constructor from CTransction
gwillen Oct 26, 2018
53e6fff
Add bool PSBTInputSigned
gwillen Oct 26, 2018
0f5bda2
Simplify arguments to SignPSBTInput
gwillen Oct 26, 2018
5655005
Refactor PSBTInput signing to enforce invariant
gwillen Oct 26, 2018
e13fea9
Add regression test for PSBT signing bug #14473
gwillen Oct 30, 2018
fa43626
test_runner: Remove travis specific code
Nov 1, 2018
c34c821
Merge #14631: [tests] Move deterministic address import to setup_nodes
Nov 2, 2018
7504157
Merge #14630: test_runner: Remove travis specific code
Nov 2, 2018
742ee21
Merge #14528: travis: Compile once on xenial
Nov 2, 2018
63c74d2
build: Remove illegal spacing in darwin.mk
ch4ot1c Nov 3, 2018
2464925
Use Qt signal for macOS Dock icon click event
hebasto Oct 31, 2018
6b1d297
Remove obj_c for macOS Dock icon menu
hebasto Nov 2, 2018
b740788
Merge #14410: rpcwallet: 'ischange' field for 'getaddressinfo' RPC
Nov 4, 2018
76e13b5
warnings: Compiler warning on memset usage for non-trivial type
ldm5180 Nov 4, 2018
2068f08
scripted-diff: Move util files to separate directory.
jimpo Oct 22, 2018
bccb4d2
Merge #14555: Move util files to directory
laanwj Nov 5, 2018
13d98ea
Merge #14647: build: Remove illegal spacing in darwin.mk
laanwj Nov 5, 2018
5796671
qt: Add GUIUtil::bringToFront
promag Aug 31, 2018
6fc21ac
qt: Use GUIUtil::bringToFront where possible
promag Aug 31, 2018
0a656f8
qt: All tray menu actions call showNormalIfMinimized
promag Aug 31, 2018
69d574a
Merge #14554: qt: Remove unused `adjustedTime` parameter
laanwj Nov 5, 2018
4ed7308
scripted-diff: Rename misleading 'defaultPort' to 'http_port'
murrayn Nov 1, 2018
46eb275
Merge #14350: Add WalletLocation class
laanwj Nov 5, 2018
15a219f
Merge #14628: Trivial: Rename misleading 'defaultPort' to 'rpc_port'
laanwj Nov 5, 2018
76ae7a1
Merge #14515: doc: Update OpenBSD build guide for 6.4
laanwj Nov 5, 2018
9912486
rpc: Make HTTP RPC debug logging more informative
practicalswift Oct 31, 2018
ab8c6f2
Add SAFE_CHARS[SAFE_CHARS_URI]: Chars allowed in URIs (RFC 3986)
practicalswift Nov 1, 2018
45f5006
Merge #14618: rpc: Make HTTP RPC debug logging more informative
laanwj Nov 5, 2018
dac2caa
Merge #14060: ZMQ: add options to configure outbound message high wat…
laanwj Nov 5, 2018
73a8408
Merge #14092: tests: Dry run bench_bitcoin as part "make check" to al…
Nov 5, 2018
6b8d0a2
Merge #14632: Tests: Fix a comment
Nov 5, 2018
b602214
trivial: Don't translate in help text
ken2812221 Nov 5, 2018
bbbbb3f
qa: Add test to ensure node can generate all help texts at runtime
Oct 22, 2018
4fb789e
Extract CSipHasher to it's own file in crypto/ directory.
jimpo Aug 24, 2018
fef5adc
blockfilter: Use unordered_set instead of set in blockfilter.
jimpo Aug 21, 2018
6c5355e
example_test.py: fixup coinbase height argument, derive number clearly
instagibbs Nov 5, 2018
dbc1a64
Merge #14660: trivial: Don't translate help texts
Nov 5, 2018
9c3f6c5
Merge #14664: example_test.py: fixup coinbase height argument, derive…
Nov 5, 2018
9f49db7
Enable functional tests in UBSAN job. Enable -fsanitize=integer (part…
practicalswift Sep 17, 2018
1ba5583
Merge #14252: build: Run functional tests and benchmarks under the un…
Nov 5, 2018
13fe258
Error if rpcpassword in conf contains a hash character
meshcollider Oct 16, 2018
0385109
Add test for rpcpassword hash error
meshcollider Oct 16, 2018
99d33a6
appveyor: Script improvement part II
ken2812221 Nov 6, 2018
5a05aa2
Add metavar to match var name in help text + Change wording for bette…
merland Oct 31, 2018
825f779
doc: Add historical release notes for 0.17.0.1
laanwj Nov 6, 2018
fced6b5
Add UBSan options: print_stacktrace + halt_on_error
practicalswift Nov 6, 2018
024816d
Merge #14522: tests: add invalid P2P message tests
laanwj Nov 6, 2018
cdddd17
Merge #14658: qa: Add test to ensure node can generate all rpc help t…
laanwj Nov 6, 2018
5c292da
Add UBSan suppressions needed to pass test suite
practicalswift Nov 6, 2018
880bc72
Merge #14074: Use std::unordered_set instead of set in blockfilter in…
laanwj Nov 6, 2018
7e2e62c
Add skeleton chain and client classes
ryanofsky May 30, 2017
8db11dd
Pass chain and client variables where needed
ryanofsky May 30, 2017
ea961c3
Remove direct node->wallet calls in init.cpp
ryanofsky Sep 28, 2017
79d579f
Remove uses of cs_main in wallet code
ryanofsky Jul 26, 2017
6af27b8
Merge #14619: tests: Fix value display name in test_runner help text
Nov 6, 2018
081accb
Pass chain locked variables where needed
ryanofsky Jul 31, 2017
3d305e3
Send fewer spam messages in p2p_invalid_messages
jamesob Nov 6, 2018
4773fa8
Add llvm-symbolizer directory to PATH. Needed to get symbolized stack…
practicalswift Nov 6, 2018
976583e
Merge #14672: tests: Send fewer spam messages in p2p_invalid_messages
Nov 6, 2018
d864e45
Merge #14673: travis: Fail the UBSan Travis build in case of newly in…
Nov 6, 2018
4e6dc7a
Merge #14665: appveyor: Script improvement part II
Nov 7, 2018
66c7024
Merge #14611: docs: align items in contrib init
Nov 7, 2018
e8d490f
Merge #14636: Avoid using numeric_limits for sequence numbers and loc…
Nov 7, 2018
590a57f
tests: Remove unused testing code
practicalswift Sep 24, 2018
c82190c
tests: Add Python dead code linter (vulture)
practicalswift Oct 4, 2018
d26d15c
Merge #14365: tests: Add Python dead code linter (vulture) to Travis
Nov 7, 2018
fa4da3c
[doc] conf: Remove deprecated options from docs, Other cleanup
Jun 29, 2016
7afddfa
importmulti: Don't add internal addresses to address book
instagibbs Nov 7, 2018
11e1ac3
Merge #14436: doc: add comment explaining recentRejects-DoS behavior
Nov 7, 2018
7a90b1b
build: Fix windows build error if `--disable-bip70`
ken2812221 Nov 7, 2018
6b8d86d
Require a public key to be retrieved when signing a P2PKH input
achow101 Nov 8, 2018
4e4de10
Throw error if CPubKey is invalid during PSBT keypath serialization
instagibbs Nov 8, 2018
e527810
Merge #14686: build: Fix windows build error if `--disable-bip70`
Nov 8, 2018
e70a19e
Merge #14684: [doc] conf: Remove deprecated options from docs, Other …
Nov 8, 2018
fa9ed38
test_node: get_mem_rss fixups
Nov 8, 2018
cbf0093
Merge #14437: Refactor: Start to separate wallet from node
Nov 9, 2018
fa0d36f
rpc: Include rpc/util.h where needed for RPCHelpMan
Nov 6, 2018
6c787d3
tests: Make feature_block pass on centos
Nov 9, 2018
fa21568
qa: Avoid race in p2p_invalid_block by waiting for the block request
Nov 9, 2018
b30c62d
Merge #14588: Refactor PSBT signing logic to enforce invariant and fi…
sipa Nov 10, 2018
16e3b17
Merge #14689: Require a public key to be retrieved when signing a P2P…
sipa Nov 10, 2018
edc7152
Merge #12783: macOS: disable AppNap during sync
laanwj Nov 10, 2018
fa3df02
travis: Avoid timeout on verify-commits check
Nov 10, 2018
fa5a6ce
qa: Raise ci test_runner timeout to 40 mins
Nov 10, 2018
ae32806
Merge #14651: Refactor: Fix compiler warning in prevector.h
laanwj Nov 12, 2018
4822325
Merge #14123: gui: Add GUIUtil::bringToFront
laanwj Nov 12, 2018
af3c8a7
Merge #14693: test_node: get_mem_rss fixups
laanwj Nov 12, 2018
5cdfd72
Merge #14228: Qt: Enable system tray icon by default if available
laanwj Nov 12, 2018
90c0b6a
Merge #14494: Error if # is used in rpcpassword in conf
laanwj Nov 12, 2018
fa483e1
rpc: Add RPCHelpMan for machine-generated help
Oct 23, 2018
47ed24c
Merge #14356: fix converttopsbt permitsigdata arg, add basic test
laanwj Nov 12, 2018
27154ce
util.h: explicitly include required QString header
1Il1 Nov 13, 2018
b60f4e3
Merge #13381: RPC: creates possibility to preserve labels on importpr…
jonasschnelli Nov 13, 2018
083f535
Merge #14608: qt: Remove the "Pay only required fee..." checkbox
jonasschnelli Nov 13, 2018
ce7fcc3
Merge #14690: Throw error if CPubKey is invalid during PSBT keypath s…
laanwj Nov 13, 2018
c51e151
Merge #14714: util.h: explicitly include required QString header
laanwj Nov 13, 2018
5d605b2
Merge #14700: qa: Avoid race in p2p_invalid_block by waiting for the …
Nov 13, 2018
e0c6bb7
Merge #14705: travis: Avoid timeout on verify-commits check
Nov 13, 2018
c651265
Merge #14530: Use RPCHelpMan to generate RPC doc strings
Nov 13, 2018
f617e05
Merge #14679: importmulti: Don't add internal addresses to address book
laanwj Nov 13, 2018
7f894ae
UPSTREAM MERGE BROKEN: Merge commit 'f617e05c38c9c7e663b824fefe5329cc…
stevenroose May 1, 2019
7256637
MERGE-FIX: Makefile fix
stevenroose May 1, 2019
9f4f2e7
MERGE-FIX: Fix compilation errors
stevenroose May 1, 2019
449ac89
MERGE-FIX: Copy bitcoin_functional from upstream
stevenroose May 2, 2019
71723f7
MERGE-FIX: Adapt bitcoin_functional
stevenroose May 2, 2019
3a83980
MERGE-FIX: Fix upstream functional tests
stevenroose May 2, 2019
1a2a93a
MERGE-FIX: General fixes for functional tests
stevenroose May 3, 2019
5492cef
MERGE-FIX: Fix fedpeg and pak tests for 0.18.0
stevenroose May 3, 2019
ee0e510
MERGE-FIX: Fix other functional tests
stevenroose May 14, 2019
bf4f1d0
MERGE-FIX: Disable p2p_invalid_messages tests to fix later
stevenroose May 14, 2019
dc900eb
Merge branch 'master' into catchup
stevenroose May 14, 2019
4ed0bb3
Fix dead-code linter issues
stevenroose May 14, 2019
872d39f
Prevent Travis from failing when tests are disabled
stevenroose May 15, 2019
ad3d496
Add extra lock check for OSX build
stevenroose May 15, 2019
d21e056
Address some linter complaints
stevenroose May 15, 2019
3cc7205
Assert that queued checks are non-null
instagibbs May 15, 2019
693f206
fill checkqueue_tests vector for completion checking
instagibbs May 15, 2019
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
3 changes: 2 additions & 1 deletion test/bitcoin_functional/functional/feature_filelock.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ def run_test(self):
self.log.info("Using datadir {}".format(datadir))

self.log.info("Check that we can't start a second bitcoind instance using the same datadir")
expected_msg = "Error: Cannot obtain a lock on data directory {}. Bitcoin Core is probably already running.".format(datadir)
# ELEMENTS:
expected_msg = "Error: Cannot obtain a lock on data directory {}. Elements Core is probably already running.".format(datadir)
self.nodes[1].assert_start_raises_init_error(extra_args=['-datadir={}'.format(self.nodes[0].datadir), '-noserver'], expected_msg=expected_msg)

if self.is_wallet_compiled():
Expand Down
3 changes: 2 additions & 1 deletion test/bitcoin_functional/functional/rpc_rawtransaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ def run_test(self):
assert_raises_rpc_error(-1, "createrawtransaction", self.nodes[0].createrawtransaction, [])

# Test `createrawtransaction` invalid extra parameters
assert_raises_rpc_error(-1, "createrawtransaction", self.nodes[0].createrawtransaction, [], {}, 0, False, 'foo')
# ELEMENTS:
#assert_raises_rpc_error(-1, "createrawtransaction", self.nodes[0].createrawtransaction, [], {}, 0, False, 'foo')

# Test `createrawtransaction` invalid `inputs`
txid = '1d1d4e24ed99057e84c3f80fd8fbec79ed9e1acee37da269356ecea000000000'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,9 @@ def main(self):
help="The seed to use for assigning port numbers (default: current process id)")
parser.add_argument("--coveragedir", dest="coveragedir",
help="Write tested RPC commands into this directory")
# ELEMENTS:
parser.add_argument("--configfile", dest="configfile",
default=os.path.abspath(os.path.dirname(os.path.realpath(__file__)) + "/../../config.ini"),
default=os.path.abspath(os.path.dirname(os.path.realpath(__file__)) + "/../../../config.ini"),
help="Location of the test framework config file (default: %(default)s)")
parser.add_argument("--pdbonfailure", dest="pdbonfailure", default=False, action="store_true",
help="Attach a python debugger if test fails")
Expand All @@ -137,8 +138,8 @@ def main(self):

config = configparser.ConfigParser()
config.read_file(open(self.options.configfile))
self.options.bitcoind = os.getenv("BITCOIND", default=config["environment"]["BUILDDIR"] + '/src/bitcoind' + config["environment"]["EXEEXT"])
self.options.bitcoincli = os.getenv("BITCOINCLI", default=config["environment"]["BUILDDIR"] + '/src/bitcoin-cli' + config["environment"]["EXEEXT"])
self.options.bitcoind = os.getenv("BITCOIND", default=config["environment"]["BUILDDIR"] + '/src/elementsd' + config["environment"]["EXEEXT"])
self.options.bitcoincli = os.getenv("BITCOINCLI", default=config["environment"]["BUILDDIR"] + '/src/elements-cli' + config["environment"]["EXEEXT"])

os.environ['PATH'] = os.pathsep.join([
os.path.join(config['environment']['BUILDDIR'], 'src'),
Expand Down
28 changes: 24 additions & 4 deletions test/bitcoin_functional/functional/test_framework/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def initialize_datadir(dirname, n):
datadir = get_datadir_path(dirname, n)
if not os.path.isdir(datadir):
os.makedirs(datadir)
with open(os.path.join(datadir, "bitcoin.conf"), 'w', encoding='utf8') as f:
with open(os.path.join(datadir, "elements.conf"), 'w', encoding='utf8') as f:
f.write("regtest=1\n")
f.write("[regtest]\n")
f.write("port=" + str(p2p_port(n)) + "\n")
Expand All @@ -302,6 +302,26 @@ def initialize_datadir(dirname, n):
f.write("discover=0\n")
f.write("listenonion=0\n")
f.write("printtoconsole=0\n")
# Elements:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we're using regtest I don't think these are required... I can do a follow-up PR if true

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

none of them?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll test later :)

f.write("con_blocksubsidy=5000000000\n")
f.write("con_connect_coinbase=0\n")
f.write("con_has_parent_chain=0\n")
f.write("parentgenesisblockhash=0\n")
f.write("anyonecanspendaremine=0\n")
f.write("con_blockheightinheader=0\n")
f.write("con_elementsmode=0\n")
f.write("con_signed_blocks=0\n")
f.write("multi_data_permitted=0\n")
f.write("walletrbf=0\n") # Default is 1 in Elements
f.write("con_bip34height=100000000\n")
f.write("con_bip65height=1351\n")
f.write("con_bip66height=1251\n")
f.write("con_genesis_style=bitcoin\n")
f.write("con_csv_deploy_start=0\n") # Default is -1 (always active)
f.write("blindedaddresses=0\n")
f.write("pubkeyprefix=111\n")
f.write("scriptprefix=196\n")
f.write("bech32_hrp=bcrt\n")
os.makedirs(os.path.join(datadir, 'stderr'), exist_ok=True)
os.makedirs(os.path.join(datadir, 'stdout'), exist_ok=True)
return datadir
Expand All @@ -310,15 +330,15 @@ def get_datadir_path(dirname, n):
return os.path.join(dirname, "node" + str(n))

def append_config(datadir, options):
with open(os.path.join(datadir, "bitcoin.conf"), 'a', encoding='utf8') as f:
with open(os.path.join(datadir, "elements.conf"), 'a', encoding='utf8') as f:
for option in options:
f.write(option + "\n")

def get_auth_cookie(datadir):
user = None
password = None
if os.path.isfile(os.path.join(datadir, "bitcoin.conf")):
with open(os.path.join(datadir, "bitcoin.conf"), 'r', encoding='utf8') as f:
if os.path.isfile(os.path.join(datadir, "elements.conf")):
with open(os.path.join(datadir, "elements.conf"), 'r', encoding='utf8') as f:
for line in f:
if line.startswith("rpcuser="):
assert user is None # Ensure that there is only one rpcuser line
Expand Down
24 changes: 16 additions & 8 deletions test/bitcoin_functional/functional/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@
# vv Tests less than 30s vv
'wallet_keypool_topup.py',
'interface_zmq.py',
'interface_bitcoin_cli.py',
# ELEMENTS:
#'interface_bitcoin_cli.py',
'mempool_resurrect.py',
'wallet_txn_doublespend.py --mineblock',
'wallet_txn_clone.py',
Expand All @@ -121,7 +122,8 @@
'wallet_disableprivatekeys.py --usecli',
'interface_http.py',
'rpc_psbt.py',
'rpc_users.py',
# ELEMENTS:
#'rpc_users.py',
'feature_proxy.py',
'rpc_signrawtransaction.py',
'wallet_groups.py',
Expand Down Expand Up @@ -176,12 +178,14 @@
'feature_uacomment.py',
'feature_filelock.py',
'p2p_unrequested_blocks.py',
'feature_includeconf.py',
# ELEMENTS:
#'feature_includeconf.py',
'rpc_scantxoutset.py',
'feature_logging.py',
'p2p_node_network_limited.py',
'feature_blocksdir.py',
'feature_config_args.py',
# ELEMENTS:
#'feature_config_args.py',
'rpc_help.py',
'feature_help.py',
# Don't append tests at the end to avoid merge conflicts
Expand Down Expand Up @@ -233,7 +237,8 @@ def main():

# Read config generated by configure.
config = configparser.ConfigParser()
configfile = os.path.abspath(os.path.dirname(__file__)) + "/../config.ini"
# ELEMENTS:
configfile = os.path.abspath(os.path.dirname(__file__)) + "/../../config.ini"
config.read_file(open(configfile, encoding="utf8"))

passon_args.append("--configfile=%s" % configfile)
Expand Down Expand Up @@ -303,7 +308,8 @@ def main():
if args.help:
# Print help for test_runner.py, then print help of the first script (with args removed) and exit.
parser.print_help()
subprocess.check_call([sys.executable, os.path.join(config["environment"]["SRCDIR"], 'test', 'functional', test_list[0].split()[0]), '-h'])
# ELEMENTS:
subprocess.check_call([sys.executable, os.path.join(config["environment"]["SRCDIR"], 'test', 'bitcoin_functional', 'functional', test_list[0].split()[0]), '-h'])
sys.exit(0)

check_script_list(src_dir=config["environment"]["SRCDIR"], fail_on_warn=args.ci)
Expand Down Expand Up @@ -340,7 +346,8 @@ def run_tests(*, test_list, src_dir, build_dir, tmpdir, jobs=1, enable_coverage=
if os.path.isdir(cache_dir):
print("%sWARNING!%s There is a cache directory here: %s. If tests fail unexpectedly, try deleting the cache directory." % (BOLD[1], BOLD[0], cache_dir))

tests_dir = src_dir + '/test/functional/'
# ELEMENTS:
tests_dir = src_dir + '/test/bitcoin_functional/functional/'

flags = ['--cachedir={}'.format(cache_dir)] + args

Expand Down Expand Up @@ -571,7 +578,8 @@ def check_script_list(*, src_dir, fail_on_warn):

Check that there are no scripts in the functional tests directory which are
not being run by pull-tester.py."""
script_dir = src_dir + '/test/functional/'
# ELEMENTS:
script_dir = src_dir + '/test/bitcoin_functional/functional/'
python_files = set([test_file for test_file in os.listdir(script_dir) if test_file.endswith(".py")])
missed_tests = list(python_files - set(map(lambda x: x.split()[0], ALL_SCRIPTS + NON_SCRIPTS)))
if len(missed_tests) != 0:
Expand Down