Merge pull request #8672 from mohamedawnallah/makeDeleteAllPaymentsArgsRequired

rpcserver: Make sure the arguments are provided when calling `DeleteAllPayments` RPC
This commit is contained in:
Oliver Gugger authored and GitHub committed 2024-04-25 10:02:59 +02:00
commit 7f5f8065ca
7 files changed
+984 -933

No files matched your search

+1 -1
View File
@@ -70,7 +70,7 @@ func (h *HarnessRPC) DeleteAllPayments() {
ctxt, cancel := context.WithTimeout(h.runCtx, DefaultTimeout)
defer cancel()
req := &lnrpc.DeleteAllPaymentsRequest{}
req := &lnrpc.DeleteAllPaymentsRequest{AllPayments: true}
_, err := h.LN.DeleteAllPayments(ctxt, req)
h.NoError(err, "DeleteAllPayments")
}