walletrpc: add status to BumpFeeResponse type.

BumpFee now returns a status signaling the success of the operation.
This commit is contained in:
ziggie committed 2024-01-09 01:15:42 +01:00
1 parent 34af399a5b
commit 81dd631935
4 files changed
+335 -311

No files matched your search

+6 -2
View File
@@ -974,7 +974,9 @@ func (w *WalletKit) BumpFee(ctx context.Context,
_, err = w.cfg.Sweeper.UpdateParams(*op, params)
switch err {
case nil:
return &BumpFeeResponse{}, nil
return &BumpFeeResponse{
Status: "Successfully registered rbf-tx with sweeper",
}, nil
case lnwallet.ErrNotMine:
break
default:
@@ -1040,7 +1042,9 @@ func (w *WalletKit) BumpFee(ctx context.Context,
return nil, err
}
return &BumpFeeResponse{}, nil
return &BumpFeeResponse{
Status: "Successfully registered cpfp-tx with the sweeper",
}, nil
}
// ListSweeps returns a list of the sweeps that our node has published.