-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Set Upfront Shutdown Address via lnrpc/lncli #3786
Copy link
Copy link
Closed
Labels
P3might get fixed, nice to havemight get fixed, nice to havebeginnerIssues suitable for new developersIssues suitable for new developersfundingRelated to the opening of new channels with funding transactions on the blockchainRelated to the opening of new channels with funding transactions on the blockchainrpcRelated to the RPC interfaceRelated to the RPC interfacespec
Metadata
Metadata
Assignees
Labels
P3might get fixed, nice to havemight get fixed, nice to havebeginnerIssues suitable for new developersIssues suitable for new developersfundingRelated to the opening of new channels with funding transactions on the blockchainRelated to the opening of new channels with funding transactions on the blockchainrpcRelated to the RPC interfaceRelated to the RPC interfacespec
Once #3655 is merged, lnd will support the
option_upfront_shutdown_addressfeature which allows nodes to specify an address that a channel should be paid out to upon cooperative close. If the peer we open a channel with supports the feature and we choose to set this address, the peer will not cooperatively close out to an address other than the one provided on channel open.Further details are provided in BOLT2.
Steps to Completion
shutdown_addressto lnrpc/lncli'sOpenChannecallsbtcutil.DecodeAddress(addr, activeNetParams.Params)txscript.PayToAddrScript(addr)and set the value onopenChanReq.ShutdownScript