diff --git a/libs/gl-client-py/glclient/__init__.py b/libs/gl-client-py/glclient/__init__.py index 12cfffd97..4a834306f 100644 --- a/libs/gl-client-py/glclient/__init__.py +++ b/libs/gl-client-py/glclient/__init__.py @@ -452,10 +452,10 @@ def pay( bytes(self.inner.call(uri, bytes(req))) ) - def trampoline_pay(self, bolt11: str, trmp_node_id: bytes, amount_msat: Optional[int] = None, label: Optional[str] = None): + def trampoline_pay(self, bolt11: str, trampoline_node_id: bytes, amount_msat: Optional[int] = None, label: Optional[str] = None): res = self.inner.trampoline_pay( bolt11=bolt11, - trmp_node_id=trmp_node_id, + trampoline_node_id=trampoline_node_id, amount_msat=amount_msat, label=label, ) diff --git a/libs/gl-client-py/glclient/glclient.pyi b/libs/gl-client-py/glclient/glclient.pyi index 6b19d22f5..f3b990e8b 100644 --- a/libs/gl-client-py/glclient/glclient.pyi +++ b/libs/gl-client-py/glclient/glclient.pyi @@ -76,7 +76,7 @@ class Node: def trampoline_pay( self, bolt11: str, - trmp_node_id: bytes, + trampoline_node_id: bytes, amount_msat: Optional[int] = None, label: Optional[str] = None, ) -> bytes: ... diff --git a/libs/gl-client-py/src/node.rs b/libs/gl-client-py/src/node.rs index be9411245..0ce1237c9 100644 --- a/libs/gl-client-py/src/node.rs +++ b/libs/gl-client-py/src/node.rs @@ -60,7 +60,7 @@ impl Node { fn trampoline_pay( &self, bolt11: String, - trmp_node_id: Vec, + trampoline_node_id: Vec, amount_msat: Option, label: Option, maxfeepercent: Option, @@ -69,7 +69,7 @@ impl Node { ) -> PyResult> { let req = pb::TrampolinePayRequest { bolt11, - trmp_node_id, + trampoline_node_id, amount_msat: amount_msat.unwrap_or_default(), label: label.unwrap_or_default(), maxfeepercent: maxfeepercent.unwrap_or_default(), diff --git a/libs/gl-plugin/src/tramp.rs b/libs/gl-plugin/src/tramp.rs index d985ff6fe..b1a4b6e4b 100644 --- a/libs/gl-plugin/src/tramp.rs +++ b/libs/gl-plugin/src/tramp.rs @@ -19,7 +19,7 @@ const MAX_DELAY_DEFAULT: u32 = 2016; const DEFAULT_OVERPAY_PERCENT: f32 = 0.5; // Type used to address bolt11 in the onion payload. const TLV_BOLT11: u64 = 33001; -// Type used to address the amount in msat in the onion payload, in case +// Type used to address the amount in msat in the onion payload, in case // that the bolt11 does not have an amount set. const TLV_AMT_MSAT: u64 = 33003; @@ -53,11 +53,11 @@ pub async fn trampolinepay( req: pb::TrampolinePayRequest, rpc_path: impl AsRef, ) -> Result { - let node_id = cln_rpc::primitives::PublicKey::from_slice(&req.trmp_node_id[..])?; + let node_id = cln_rpc::primitives::PublicKey::from_slice(&req.trampoline_node_id[..])?; log::debug!( "New trampoline payment via {}: {} ", - hex::encode(req.trmp_node_id), + hex::encode(req.trampoline_node_id), req.bolt11.clone() );