lnwire: the FeeSatoshis field in the ClosingSigned message is now btcutil.Amount

This commit is contained in:
Olaoluwa Osuntokun 2017-11-23 00:27:26 -06:00
parent 78ccfb4989
commit a1c0e30051
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21
2 changed files with 6 additions and 5 deletions

@ -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{

@ -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,
}