@@ -209,12 +209,12 @@ type LightningClient interface {
209
209
210
210
// SendCoins sends the passed amount of (or all) coins to the passed
211
211
// 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
213
213
// case automatic conf target and fee will be used. Returns the tx id
214
214
// upon success.
215
215
SendCoins (ctx context.Context , addr btcutil.Address ,
216
216
amount btcutil.Amount , sendAll bool , confTarget int32 ,
217
- satsPerByte int64 , label string ) (string , error )
217
+ satsPerVByte chainfee. SatPerVByte , label string ) (string , error )
218
218
219
219
// ChannelBalance returns a summary of our channel balances.
220
220
ChannelBalance (ctx context.Context ) (* ChannelBalance , error )
@@ -3592,25 +3592,25 @@ func (s *lightningClient) Connect(ctx context.Context, peer route.Vertex,
3592
3592
}
3593
3593
3594
3594
// SendCoins sends the passed amount of (or all) coins to the passed address.
3595
- // Either amount or sendAll must be specified, while confTarget, satsPerByte are
3596
- // optional and may be set to zero in which case automatic conf target and fee
3597
- // will be used. Returns the tx id upon success.
3595
+ // Either amount or sendAll must be specified, while confTarget, satsPerVByte
3596
+ // are optional and may be set to zero in which case automatic conf target and
3597
+ // fee will be used. Returns the tx id upon success.
3598
3598
func (s * lightningClient ) SendCoins (ctx context.Context , addr btcutil.Address ,
3599
3599
amount btcutil.Amount , sendAll bool , confTarget int32 ,
3600
- satsPerByte int64 , label string ) (string , error ) {
3600
+ satsPerVByte chainfee. SatPerVByte , label string ) (string , error ) {
3601
3601
3602
3602
rpcCtx , cancel := context .WithTimeout (ctx , s .timeout )
3603
3603
defer cancel ()
3604
3604
3605
3605
rpcCtx = s .adminMac .WithMacaroonAuth (rpcCtx )
3606
3606
3607
3607
req := & lnrpc.SendCoinsRequest {
3608
- Addr : addr .String (),
3609
- Amount : int64 (amount ),
3610
- TargetConf : confTarget ,
3611
- SatPerByte : satsPerByte ,
3612
- SendAll : sendAll ,
3613
- Label : label ,
3608
+ Addr : addr .String (),
3609
+ Amount : int64 (amount ),
3610
+ TargetConf : confTarget ,
3611
+ SatPerVbyte : uint64 ( satsPerVByte ) ,
3612
+ SendAll : sendAll ,
3613
+ Label : label ,
3614
3614
}
3615
3615
3616
3616
resp , err := s .client .SendCoins (rpcCtx , req )
0 commit comments