ElementsProject / ElementsProject/peerswap
CLN API deprecation causes peerswap-listpeers field to disappear
- Dominant language
- Go
- Stars
- 128
- Forks
- 84
- Avg merge
- 3h 1m
- Merged PRs (30d)
- 1
Description
CLN v23.05 with `allow-deprecated-apis=false` and PeerSwap at 19aaf19f868a874be5c9a16f3cb0143b647cb4b8
`peerswap-listpeers` is missing the `channels` field. Commenting out `allow-deprecated-apis=false` fixes it, so it appears we might have missed a deprecation.
```
$ lightning-cli --signet peerswap-listpeers
[
{
"nodeid": "...",
"swaps_allowed": true,
"supported_assets": [
"btc",
"lbtc"
],
"channels": [],
"sent": {
"total_swaps_out": 19,
"total_swaps_in": 15,
"total_sats_swapped_out": 2700200000,
"total_sats_swapped_in": 2090100000
},
"received": {
"total_swaps_out": 6,
"total_swaps_in": 6,
"total_sats_swapped_out": 600000000,
"total_sats_swapped_in": 600000000
},
"total_fee_paid": 9293
}
]
Contributor guide
Assessment
This issue has not been assessed yet.