mirror of
https://github.com/daywalker90/cln-nip47.git
synced 2026-08-13 12:33:43 +02:00
fix legacy keysend tlv byte decoding
This commit is contained in:
parent
2e8cecc48b
commit
a4570966d2
1 changed files with 5 additions and 1 deletions
|
|
@ -199,7 +199,11 @@ async fn keysend(
|
|||
for tlv in ¶ms.tlv_records {
|
||||
extratlvs.entries.push(TlvEntry {
|
||||
typ: tlv.tlv_type,
|
||||
value: tlv.value.as_bytes().to_owned(),
|
||||
value: hex::decode(&tlv.value).map_err(|e| RpcError {
|
||||
code: Some(-32700),
|
||||
message: format!("Could not decode tlv bytes: {e}"),
|
||||
data: None,
|
||||
})?,
|
||||
});
|
||||
}
|
||||
let extratlvs = if extratlvs.entries.is_empty() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue