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

refactor: Remove no-op TIME_INIT on deser #25245

Merged
merged 1 commit into from
Jun 7, 2022

Conversation

maflcko
Copy link
Member

@maflcko maflcko commented May 30, 2022

Split out from #24697

Assigning TIME_INIT to nTime was needed to fully re-initialize a dirty
object where the deserialization might skip nTime.
See https://github.com/bitcoin/bitcoin/pull/19020/files#r427620111

Now that the without-nTime logic is removed in commit
dbcb574 and commit
e08770b, the logic here can be removed
as well.

Also, remove confusing and redundant preprocessor code.

Also, remove no longer needed version.h include, which was needed for
INIT_PROTO_VERSION.
Copy link
Member

@fanquake fanquake left a comment

Choose a reason for hiding this comment

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

ACK fa243e9

@laanwj
Copy link
Member

laanwj commented Jun 7, 2022

ACK fa243e9

@laanwj laanwj merged commit d8ae504 into bitcoin:master Jun 7, 2022
@maflcko maflcko deleted the 2205-no-time-deser-🌗 branch June 7, 2022 19:00
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Jun 8, 2022
@bitcoin bitcoin locked and limited conversation to collaborators Jun 7, 2023
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.

None yet

4 participants