This PR relaxes the Cancel choice for the HTLC Batch with the following changes:
It allows the cancellation of a Batch that is either in the Open state or has expired.
It enables the instructor (along with consenters) to cancel the Batch even if its Instructions are Approved and Allocated, removing the need to first unapprove or unallocate them, or to obtain additional authorization.
Previously, the Cancel choice of the Batch required the HTLC to be expired, preventing cancellation while in the Open (and non-expired) state.
This PR relaxes the
Cancel
choice for the HTLCBatch
with the following changes:Batch
that is either in theOpen
state or has expired.instructor
(along withconsenters
) to cancel theBatch
even if itsInstruction
s areApproved
andAllocated
, removing the need to first unapprove or unallocate them, or to obtain additional authorization.Previously, the
Cancel
choice of theBatch
required the HTLC to be expired, preventing cancellation while in theOpen
(and non-expired) state.