mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-10 14:17:56 +01:00
Merge pull request #9724 from bhandras/fundpsbt-custom-input-lock
walletrpc: allow custom lock ID and duration in `FundPsbt`
This commit is contained in:
@@ -379,3 +379,16 @@ func (h *HarnessRPC) RequiredReserve(
|
||||
|
||||
return resp
|
||||
}
|
||||
|
||||
// ListLeases makes a ListLeases RPC call to the node's WalletKit client.
|
||||
func (h *HarnessRPC) ListLeases() *walletrpc.ListLeasesResponse {
|
||||
ctxt, cancel := context.WithTimeout(h.runCtx, DefaultTimeout)
|
||||
defer cancel()
|
||||
|
||||
resp, err := h.WalletKit.ListLeases(
|
||||
ctxt, &walletrpc.ListLeasesRequest{},
|
||||
)
|
||||
h.NoError(err, "ListLeases")
|
||||
|
||||
return resp
|
||||
}
|
||||
|
||||
@@ -294,3 +294,8 @@ func CustomRecordsWithUnendorsed(
|
||||
}},
|
||||
)
|
||||
}
|
||||
|
||||
// LnrpcOutpointToStr returns a string representation of an lnrpc.OutPoint.
|
||||
func LnrpcOutpointToStr(outpoint *lnrpc.OutPoint) string {
|
||||
return fmt.Sprintf("%s:%d", outpoint.TxidStr, outpoint.OutputIndex)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user