Skip to content

Witness_Type in 2 packages diverged #7460

@ziggie1984

Description

@ziggie1984

We have the variable witness_type in 2 places but they divereged: input/witnessgen.go and in walletrpc.proto
I want to bring them back to unity and was also thinking of using the same order(same enum value) in both, which makes it easier to compare. Or are types only appended in the protofiles and never rearrange because of backwards compatibility (which shouldn't be a problem IMO)

I found out about it when sweeping a TX:
lncli wallet pendingsweeps showed me: UNKNOWN_WITNESS

But the log was also clear about it:
2023-02-26 16:39:32.956 [WRN] WLKT: Unhandled witness type HtlcOfferedTimeoutSecondLevelInputConfirmed for input e7a90e891c56b5a3fea4977a161aa1be77f4cee4977c6112ea410d3ac01a2761:4

Feel free to assign it to me, if we wanna fix this.

Metadata

Metadata

Labels

bugUnintended code behaviourcode healthRelated to code commenting, refactoring, and other non-behaviour improvementsgood first issueIssues suitable for first time contributors to LND

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions