mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
Compare commits
4 commits
e1c70ad294
...
0c092abcf2
Author | SHA1 | Date | |
---|---|---|---|
|
0c092abcf2 | ||
|
c5e44a0435 | ||
|
32d55e28af | ||
|
903fc971ed |
2 changed files with 17 additions and 1 deletions
|
@ -40,6 +40,22 @@ if(NOT "$ENV{BITCOIN_GENBUILD_NO_GIT}" STREQUAL "1")
|
|||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
ERROR_QUIET
|
||||
)
|
||||
if(IS_INSIDE_WORK_TREE)
|
||||
# This check ensures that we are actually part of the intended git repository, and not just getting info about some unrelated git repository that the code happens to be in a directory under
|
||||
execute_process(
|
||||
COMMAND ${GIT_EXECUTABLE} status --porcelain -uall --ignored cmake/script/GenerateBuildInfo.cmake
|
||||
WORKING_DIRECTORY ${WORKING_DIR}
|
||||
RESULT_VARIABLE SCRIPT_STATUS_EXITCODE
|
||||
OUTPUT_VARIABLE SCRIPT_STATUS
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
ERROR_QUIET
|
||||
)
|
||||
if(SCRIPT_STATUS_EXITCODE)
|
||||
set(IS_INSIDE_WORK_TREE 0)
|
||||
elseif(SCRIPT_STATUS MATCHES "^$|\\?")
|
||||
set(IS_INSIDE_WORK_TREE 0)
|
||||
endif()
|
||||
endif()
|
||||
if(IS_INSIDE_WORK_TREE)
|
||||
# Clean 'dirty' status of touched files that haven't been modified.
|
||||
execute_process(
|
||||
|
|
|
@ -87,7 +87,7 @@ class BackwardsCompatibilityTest(BitcoinTestFramework):
|
|||
# 0.21.x and 22.x would both produce bad derivation paths when topping up an inactive hd chain
|
||||
# Make sure that this is being automatically cleaned up by migration
|
||||
node_master = self.nodes[1]
|
||||
node_v22 = self.nodes[self.num_nodes - 5]
|
||||
node_v22 = self.nodes[self.num_nodes - 3]
|
||||
wallet_name = "bad_deriv_path"
|
||||
node_v22.createwallet(wallet_name=wallet_name, descriptors=False)
|
||||
bad_deriv_wallet = node_v22.get_wallet_rpc(wallet_name)
|
||||
|
|
Loading…
Add table
Reference in a new issue