Closed darosior closed 2 months ago
From an initial look, yes I think so if there's only a single input, unless perhaps if we only set values that don't correspond to the descriptor's timelocks. For multiple inputs, my understanding is we would only set nSequence for the first and so we could check that not all inputs have nSequence to distinguish from a recovery transaction.
The GUI may need to use one of the suggestions from https://github.com/wizardsardine/liana/pull/1150#discussion_r1658694811 if implicit detection is not possible.
In case it is possible to do implicitly, we should check if it's possible to move the logic to the LianaDescriptor::unsigned_tx_max_vbytes()
method and remove the use_primary_path
parameter.
Needs to be done together with #45
Closing, let's concentrate discussions in https://github.com/wizardsardine/liana/issues/45.
_Originally posted by @darosior in https://github.com/wizardsardine/liana/pull/1172#discussion_r1665581347_