Skip to content

Commit

Permalink
Fix schedule post deserialization (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickfarrow committed Nov 17, 2022
1 parent 60b78a2 commit 25409a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ <h2>Queue batches of lightning channels to open in a single transaction</h2>
x-flex direction="column">
<fieldset>
<legend>Queue Channels to Open</legend>
<br>
<!-- channels -->
<x-grid columns=2 id="channels">
<label id="destinationLabel" span=1>Destination Node</label><label id="capacityLabel" span=1>Channel Capacity (sats)</label>
Expand Down
2 changes: 1 addition & 1 deletion src/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ async fn handle_schedule(
) -> Result<Response<Body>, HttpError> {
let bytes = hyper::body::to_bytes(req.into_body()).await?;
// deserialize x-www-form-urlencoded data with non-strict encoded "channel[arrayindex]"
let conf = serde_qs::Config::new(2, false);
let conf = serde_qs::Config::new(5, false); // 5 is default max_depth
let request: ChannelBatch = conf.deserialize_bytes(&bytes)?;

let (uri, address) = scheduler.schedule_payjoin(request).await?;
Expand Down

0 comments on commit 25409a1

Please # to comment.