Skip to content

Commit d702b94

Browse files
get rid of update_chain_tip completely
1 parent a8690de commit d702b94

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

src/lib.rs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -660,14 +660,6 @@ impl MdkNode {
660660
})
661661
}
662662

663-
#[napi]
664-
pub fn update_chain_tip(&self) -> napi::Result<()> {
665-
self
666-
.node()
667-
.update_chain_tip()
668-
.map_err(|e| napi::Error::from_reason(format!("Failed to update chain tip: {e}")))
669-
}
670-
671663
#[napi]
672664
pub fn receive_payment(
673665
&self,
@@ -883,10 +875,6 @@ impl MdkNode {
883875
description: String,
884876
expiry_secs: i64,
885877
) -> PaymentMetadata {
886-
if let Err(err) = self.node().update_chain_tip() {
887-
eprintln!("[lightning-js] Failed to update chain tip for get_invoice_with_scid: {err}");
888-
}
889-
890878
let bolt11_invoice_description =
891879
Bolt11InvoiceDescription::Direct(Description::new(description).unwrap());
892880

@@ -925,12 +913,6 @@ impl MdkNode {
925913
description: String,
926914
expiry_secs: i64,
927915
) -> PaymentMetadata {
928-
if let Err(err) = self.node().update_chain_tip() {
929-
eprintln!(
930-
"[lightning-js] Failed to update chain tip for get_variable_amount_jit_invoice_with_scid: {err}"
931-
);
932-
}
933-
934916
let bolt11_invoice_description =
935917
Bolt11InvoiceDescription::Direct(Description::new(description).unwrap());
936918

0 commit comments

Comments
 (0)