Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions .msggen.json
Original file line number Diff line number Diff line change
Expand Up @@ -3847,6 +3847,22 @@
"sendpay_success.status": 12,
"sendpay_success.updated_index": 5
},
"SendamountRequest": {
"SendAmount.amount_msat": 2,
"SendAmount.invstring": 1,
"SendAmount.layers[]": 4,
"SendAmount.maxdelay": 6,
"SendAmount.maxfee": 3,
"SendAmount.payer_note": 7,
"SendAmount.retry_for": 5
},
"SendamountResponse": {
"SendAmount.amount_msat": 4,
"SendAmount.amount_sent_msat": 5,
"SendAmount.failed_parts": 2,
"SendAmount.payment_preimage": 1,
"SendAmount.successful_parts": 3
},
"SendcustommsgRequest": {
"SendCustomMsg.msg": 2,
"SendCustomMsg.node_id": 1
Expand Down Expand Up @@ -13173,6 +13189,54 @@
"added": "pre-v0.10.1",
"deprecated": null
},
"SendAmount": {
"added": "v26.06",
"deprecated": null
},
"SendAmount.amount_msat": {
"added": "v26.06",
"deprecated": null
},
"SendAmount.amount_sent_msat": {
"added": "v26.06",
"deprecated": null
},
"SendAmount.failed_parts": {
"added": "v26.06",
"deprecated": null
},
"SendAmount.invstring": {
"added": "v26.06",
"deprecated": null
},
"SendAmount.layers[]": {
"added": "v26.06",
"deprecated": null
},
"SendAmount.maxdelay": {
"added": "v26.06",
"deprecated": null
},
"SendAmount.maxfee": {
"added": "v26.06",
"deprecated": null
},
"SendAmount.payer_note": {
"added": "v26.06",
"deprecated": null
},
"SendAmount.payment_preimage": {
"added": "v26.06",
"deprecated": null
},
"SendAmount.retry_for": {
"added": "v26.06",
"deprecated": null
},
"SendAmount.successful_parts": {
"added": "v26.06",
"deprecated": null
},
"SendCustomMsg": {
"added": "v0.10.1",
"deprecated": null
Expand Down
19 changes: 19 additions & 0 deletions cln-grpc/proto/node.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 44 additions & 0 deletions cln-grpc/src/convert.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions cln-grpc/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4818,6 +4818,38 @@ impl Node for Server

}

async fn send_amount(
&self,
request: tonic::Request<pb::SendamountRequest>,
) -> Result<tonic::Response<pb::SendamountResponse>, tonic::Status> {
let req = request.into_inner();
let req: requests::SendamountRequest = req.into();
debug!("Client asked for send_amount");
trace!("send_amount request: {:?}", req);
let mut rpc = ClnRpc::new(&self.rpc_path)
.await
.map_err(|e| Status::new(Code::Internal, e.to_string()))?;
let result = rpc.call(Request::SendAmount(req))
.await
.map_err(|e| Status::new(
Code::Unknown,
format!("Error calling method SendAmount: {:?}", e)))?;
match result {
Response::SendAmount(r) => {
trace!("send_amount response: {:?}", r);
Ok(tonic::Response::new(r.into()))
},
r => Err(Status::new(
Code::Internal,
format!(
"Unexpected result {:?} to method call SendAmount",
r
)
)),
}

}



type SubscribeBalanceSnapshotStream = NotificationStream<pb::BalanceSnapshotNotification>;
Expand Down
55 changes: 55 additions & 0 deletions cln-rpc/src/model.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading