Skip to content

Conversation

maflcko
Copy link
Member

@maflcko maflcko commented Jun 10, 2022

This was done in the context of #25284 , but I think it also makes sense standalone.

The basic idea is that serialization type should not be initialized when it is not needed. Same for the serialization version.

So do this here for HashWriter. CHashWriter remains in places where it is not yet possible.

@DrahtBot
Copy link
Contributor

DrahtBot commented Jun 10, 2022

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

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #24058 (BIP-322 basic support by kallewoof)
  • #13062 (Make script interpreter independent from storage type CScript by sipa)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

Copy link

@meetsussie meetsussie left a comment

Choose a reason for hiding this comment

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

.

@bitcoin bitcoin deleted a comment from meetsussie Jun 14, 2022
@laanwj
Copy link
Member

laanwj commented Jun 17, 2022

Concept ACK

@maflcko maflcko force-pushed the 2206-hashwriter- branch from fa9cc54 to faa404c Compare June 18, 2022 10:54
MacroFake added 2 commits July 20, 2022 15:34
The moved parts can be reviewed with "--color-moved=dimmed-zebra".
@maflcko maflcko force-pushed the 2206-hashwriter- branch from faa404c to faf9acc Compare July 20, 2022 13:34
@sipa
Copy link
Member

sipa commented Jul 20, 2022

utACK faf9acc

@maflcko maflcko requested review from Empact and ryanofsky July 20, 2022 16:53
@Empact
Copy link
Contributor

Empact commented Jul 22, 2022

utACK faf9acc

nit: I still prefer default-initialization without {} - the brackets strike me as noise if unnecessary.
#25331 (comment)

@fanquake fanquake merged commit 510ac41 into bitcoin:master Jul 22, 2022
@maflcko maflcko deleted the 2206-hashwriter-👽 branch July 22, 2022 07:47
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Jul 22, 2022
@bitcoin bitcoin locked and limited conversation to collaborators Jul 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants