Release all waiting HTLCs
(p: Plugin<State>, _v: serde_json::Value)
| 28 | |
| 29 | /// Release all waiting HTLCs |
| 30 | async fn release(p: Plugin<State>, _v: serde_json::Value) -> Result<serde_json::Value, Error> { |
| 31 | p.state().tx.send(()).unwrap(); |
| 32 | Ok(json!("Released!")) |
| 33 | } |
| 34 | |
| 35 | async fn htlc_accepted_handler( |
| 36 | p: Plugin<State>, |