Skip to content

Conversation

tdb3
Copy link
Contributor

@tdb3 tdb3 commented Aug 17, 2024

Builds on PR #30657.

Refactors read_xor_key() from util.py to test_node.py (comment #30657 (comment))

Adds a check that xor.dat is created when missing (comment #30657 (comment))

Help states:

-blocksxor
       Whether an XOR-key applies to blocksdir *.dat files. The created XOR-key
       will be zeros for an existing blocksdir or when `-blocksxor=0` is
       set, and random for a freshly initialized blocksdir. (default: 1)

@DrahtBot
Copy link
Contributor

DrahtBot commented Aug 17, 2024

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Code Coverage

For detailed information about the code coverage, see the test coverage report.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK maflcko, theStack, brunoerg, achow101
Stale ACK danielabrozzoni, glozow

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

@DrahtBot DrahtBot added the Tests label Aug 17, 2024
Copy link
Contributor

@danielabrozzoni danielabrozzoni left a comment

Choose a reason for hiding this comment

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

tACK 07365d0

@tdb3 tdb3 force-pushed the 20240817_test_new_xor_dat_created branch from 07365d0 to 7b7c287 Compare August 19, 2024 21:11
@tdb3
Copy link
Contributor Author

tdb3 commented Aug 19, 2024

Thanks @danielabrozzoni and @brunoerg. Pushed an update to address comments, and clarified the log message.

Copy link
Contributor

@theStack theStack left a comment

Choose a reason for hiding this comment

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

ACK 7b7c287

Thanks for following up! If you want, you could also tackle the suggestion to move the read_xor_key helper to the TestNode class, see #30657 (comment)

Copy link
Member

@glozow glozow left a comment

Choose a reason for hiding this comment

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

ACK 7b7c287

Copy link
Contributor

@brunoerg brunoerg left a comment

Choose a reason for hiding this comment

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

ACK 7b7c287

@tdb3
Copy link
Contributor Author

tdb3 commented Aug 21, 2024

If you want, you could also tackle the suggestion to move the read_xor_key helper to the TestNode class, see #30657 (comment)

Thanks for the suggestion! This PR seems to be a reasonable place to perform the move, so I updated it to include this. Happy to make tweaks if you or @maflcko have any further suggestions.

@tdb3 tdb3 force-pushed the 20240817_test_new_xor_dat_created branch from 7b7c287 to fee7e1c Compare August 21, 2024 00:34
@tdb3 tdb3 changed the title test: check xor.dat creation when missing test: XORed blocks test follow up Aug 21, 2024
Adds a convenience function to TestNode
to provide the path to the blocks xor key.
Updates util and feature_blocksxor to use it.
@tdb3 tdb3 force-pushed the 20240817_test_new_xor_dat_created branch from fee7e1c to ab9d245 Compare August 23, 2024 17:16
Copy link
Contributor

@theStack theStack left a comment

Choose a reason for hiding this comment

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

ACK ab9d245

@DrahtBot DrahtBot requested review from glozow and brunoerg August 24, 2024 23:22
@tdb3 tdb3 force-pushed the 20240817_test_new_xor_dat_created branch from ab9d245 to 1c403af Compare August 24, 2024 23:29
Copy link
Contributor

@theStack theStack left a comment

Choose a reason for hiding this comment

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

re-ACK 1c403af

@tdb3 tdb3 force-pushed the 20240817_test_new_xor_dat_created branch from 1c403af to e1d5dd7 Compare August 25, 2024 12:53
@maflcko
Copy link
Member

maflcko commented Aug 26, 2024

ACK e1d5dd7

@DrahtBot DrahtBot requested a review from theStack August 26, 2024 07:32
Copy link
Contributor

@theStack theStack left a comment

Choose a reason for hiding this comment

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

re-ACK e1d5dd7

Copy link
Contributor

@brunoerg brunoerg left a comment

Choose a reason for hiding this comment

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

reACK e1d5dd7

@maflcko maflcko added this to the 28.0 milestone Aug 26, 2024
@achow101
Copy link
Member

ACK e1d5dd7

@achow101 achow101 merged commit d50f0ce into bitcoin:master Aug 26, 2024
16 checks passed
@bitcoin bitcoin locked and limited conversation to collaborators Aug 26, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants