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

lightningd/chaintopology.h: Remove unused txnums field from struct block. #3873

Merged
merged 1 commit into from
Jul 31, 2020

Conversation

ZmnSCPxj
Copy link
Collaborator

Related to #3858

Code related to this field was last updated in 2017. It is initialized to a pointless 0-length array, in code that was last touched in 2016. No other code reads from it, writes to it, or even does something like extend the array.

Removing since I want to change the interface between bcli and lightningd, which implies that the struct block would actually be reported in JSON form by bcli to lightningd, and since txnums is unused anyway, we can remove it and simplify what we will eventually need from bcli.

Copy link
Collaborator

@darosior darosior left a comment

Choose a reason for hiding this comment

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

ACK ae0b724

IIRC we also have another useless field in chaintopology.c (like two variables for the tip or something)

@ZmnSCPxj ZmnSCPxj added this to the Next Release milestone Jul 27, 2020
@ZmnSCPxj ZmnSCPxj merged commit b646b96 into ElementsProject:master Jul 31, 2020
@ZmnSCPxj ZmnSCPxj deleted the remove-txnums branch August 4, 2020 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants