@@ -209,12 +209,12 @@ type LightningClient interface {
209209
210210 // SendCoins sends the passed amount of (or all) coins to the passed
211211 // address. Either amount or sendAll must be specified, while
212- // confTarget, satsPerByte are optional and may be set to zero in which
212+ // confTarget, satsPerVByte are optional and may be set to zero in which
213213 // case automatic conf target and fee will be used. Returns the tx id
214214 // upon success.
215215 SendCoins (ctx context.Context , addr btcutil.Address ,
216216 amount btcutil.Amount , sendAll bool , confTarget int32 ,
217- satsPerByte int64 , label string ) (string , error )
217+ satsPerVByte chainfee. SatPerVByte , label string ) (string , error )
218218
219219 // ChannelBalance returns a summary of our channel balances.
220220 ChannelBalance (ctx context.Context ) (* ChannelBalance , error )
@@ -3635,25 +3635,25 @@ func (s *lightningClient) Connect(ctx context.Context, peer route.Vertex,
36353635}
36363636
36373637// SendCoins sends the passed amount of (or all) coins to the passed address.
3638- // Either amount or sendAll must be specified, while confTarget, satsPerByte are
3639- // optional and may be set to zero in which case automatic conf target and fee
3640- // will be used. Returns the tx id upon success.
3638+ // Either amount or sendAll must be specified, while confTarget, satsPerVByte
3639+ // are optional and may be set to zero in which case automatic conf target and
3640+ // fee will be used. Returns the tx id upon success.
36413641func (s * lightningClient ) SendCoins (ctx context.Context , addr btcutil.Address ,
36423642 amount btcutil.Amount , sendAll bool , confTarget int32 ,
3643- satsPerByte int64 , label string ) (string , error ) {
3643+ satsPerVByte chainfee. SatPerVByte , label string ) (string , error ) {
36443644
36453645 rpcCtx , cancel := context .WithTimeout (ctx , s .timeout )
36463646 defer cancel ()
36473647
36483648 rpcCtx = s .adminMac .WithMacaroonAuth (rpcCtx )
36493649
36503650 req := & lnrpc.SendCoinsRequest {
3651- Addr : addr .String (),
3652- Amount : int64 (amount ),
3653- TargetConf : confTarget ,
3654- SatPerByte : satsPerByte ,
3655- SendAll : sendAll ,
3656- Label : label ,
3651+ Addr : addr .String (),
3652+ Amount : int64 (amount ),
3653+ TargetConf : confTarget ,
3654+ SatPerVbyte : uint64 ( satsPerVByte ) ,
3655+ SendAll : sendAll ,
3656+ Label : label ,
36573657 }
36583658
36593659 resp , err := s .client .SendCoins (rpcCtx , req )
0 commit comments