-
Notifications
You must be signed in to change notification settings - Fork 975
Closed
Labels
Description
In one of my plugins a user got an error that should not happen imo: daywalker90/summars#9
I call listforwards like this in my plugin:
list_forwards(
rpc_path,
Some(ListforwardsStatus::SETTLED),
None,
None,
Some(ListforwardsIndex::CREATED),
Some(fw_index.start),
None,
)
.await?pub async fn list_forwards(
rpc_path: &PathBuf,
status: Option<ListforwardsStatus>,
in_channel: Option<ShortChannelId>,
out_channel: Option<ShortChannelId>,
index: Option<ListforwardsIndex>,
start: Option<u64>,
limit: Option<u32>,
) -> Result<ListforwardsResponse, Error> {
let mut rpc = ClnRpc::new(&rpc_path).await?;
let listforwards_request = rpc
.call(Request::ListForwards(ListforwardsRequest {
status,
in_channel,
out_channel,
index,
start,
limit,
}))
.await
.map_err(|e| anyhow!("Error calling list_forwards: {}", e.to_string()))?;
match listforwards_request {
Response::ListForwards(info) => Ok(info),
e => Err(anyhow!("Unexpected result in list_forwards: {:?}", e)),
}
}and he got a
"Error calling list_forwards: Error: Failed to deserialize response : missing field `received_time`"
The schema says that received_time is required. So i don't know how this can happen. He uses cln 24.02.1 and i use cln-rpc 0.1.8
Reactions are currently unavailable