Skip to content

Commit

Permalink
Expose hide_topup
Browse files Browse the repository at this point in the history
  • Loading branch information
dleutenegger committed Oct 5, 2023
1 parent fc50986 commit 1b1d20d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,12 @@ impl LightningNode {
Ok(topup_info)
}

pub fn hide_topup(&self, id: String) -> Result<()> {
self.offer_manager
.hide_topup(id)
.map_runtime_error_to(RuntimeErrorCode::OfferServiceUnavailable)
}

pub fn query_uncompleted_offers(&self) -> Result<Vec<OfferInfo>> {
let topup_infos = self
.offer_manager
Expand Down

0 comments on commit 1b1d20d

Please sign in to comment.