fundingmanager+server: define subtractFees

Let one initiate a funding request with the remaining funds in the
wallet.
This commit is contained in:
Johan T. Halseth committed 2019-07-18 00:58:12 +02:00
1 parent 87c8165f01
commit b9816259cb
3 files changed
+47 -13

No files matched your search

+7
View File
@@ -515,6 +515,13 @@ func (r *ChannelReservation) FundingOutpoint() *wire.OutPoint {
return &r.partialState.FundingOutpoint
}
// Capacity returns the channel capacity for this reservation.
func (r *ChannelReservation) Capacity() btcutil.Amount {
r.RLock()
defer r.RUnlock()
return r.partialState.Capacity
}
// Cancel abandons this channel reservation. This method should be called in
// the scenario that communications with the counterparty break down. Upon
// cancellation, all resources previously reserved for this pending payment