mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-27 04:56:46 +02:00
rpcserver+lnrpc+lncli: add AbandonChannel rpc call
Using AbandonChannel, a channel can be abandoned. This means removing all state without any on-chain or off-chain action. A close summary is the only thing that is stored in the db after abandoning. A specific close type Abandoned is added. Abandoned channels can be retrieved via the ClosedChannels RPC.
This commit is contained in:
@@ -1792,6 +1792,11 @@ const (
|
||||
// we or the remote fail at some point during the opening workflow, or
|
||||
// we timeout waiting for the funding transaction to be confirmed.
|
||||
FundingCanceled ClosureType = 3
|
||||
|
||||
// Abandoned indicates that the channel state was removed without
|
||||
// any further actions. This is intended to clean up unusable
|
||||
// channels during development.
|
||||
Abandoned ClosureType = 5
|
||||
)
|
||||
|
||||
// ChannelCloseSummary contains the final state of a channel at the point it
|
||||
|
Reference in New Issue
Block a user