lnwire: directly embed the wire.OutPoint in all commitment update msgs

This commit is contained in:
Olaoluwa Osuntokun
2017-02-16 20:34:44 +08:00
parent 5330513c7b
commit ccbbcf389b
10 changed files with 24 additions and 62 deletions

View File

@@ -22,7 +22,7 @@ import (
// know the order of the inputs/outputs.
type CloseRequest struct {
// ChannelPoint serves to identify which channel is to be closed.
ChannelPoint *wire.OutPoint
ChannelPoint wire.OutPoint
// RequesterCloseSig is the signature of the requester for the fully
// assembled closing transaction.
@@ -36,7 +36,7 @@ type CloseRequest struct {
}
// NewCloseRequest creates a new CloseRequest.
func NewCloseRequest(cp *wire.OutPoint, sig *btcec.Signature) *CloseRequest {
func NewCloseRequest(cp wire.OutPoint, sig *btcec.Signature) *CloseRequest {
// TODO(roasbeef): update once fees aren't hardcoded
return &CloseRequest{
ChannelPoint: cp,