diff --git a/lnwire/closing_signed.go b/lnwire/closing_signed.go index df1c1ade..e1f56dae 100644 --- a/lnwire/closing_signed.go +++ b/lnwire/closing_signed.go @@ -4,6 +4,7 @@ import ( "io" "github.com/roasbeef/btcd/btcec" + "github.com/roasbeef/btcutil" ) // ClosingSigned is sent by both parties to a channel once the channel is clear @@ -21,16 +22,16 @@ type ClosingSigned struct { // ChannelID serves to identify which channel is to be closed. ChannelID ChannelID - // FeeSatoshis is the fee that the party to the channel would like to - // propose for the close transaction. - FeeSatoshis uint64 + // FeeSatoshis is the total fee in satoshis that the party to the + // channel would like to propose for the close transaction. + FeeSatoshis btcutil.Amount // Signature is for the proposed channel close transaction. Signature *btcec.Signature } // NewClosingSigned creates a new empty ClosingSigned message. -func NewClosingSigned(cid ChannelID, fs uint64, +func NewClosingSigned(cid ChannelID, fs btcutil.Amount, sig *btcec.Signature) *ClosingSigned { return &ClosingSigned{ diff --git a/lnwire/lnwire_test.go b/lnwire/lnwire_test.go index 8c033f5a..021181ad 100644 --- a/lnwire/lnwire_test.go +++ b/lnwire/lnwire_test.go @@ -303,7 +303,7 @@ func TestLightningWireProtocol(t *testing.T) { }, MsgClosingSigned: func(v []reflect.Value, r *rand.Rand) { req := ClosingSigned{ - FeeSatoshis: uint64(r.Int63()), + FeeSatoshis: btcutil.Amount(r.Int63()), Signature: testSig, }