Skip to content

Commit 3772c47

Browse files
Update static inv server OM TLVs to not conflict
Previously one of the static invoice server onion message TLV types conflicted with a DNS resolver onion message type, causing test failures on cargo test --cfg=async_payments. We also bump the TLV numbers by 10k until they can be documented in a bLIP.
1 parent be591c1 commit 3772c47

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lightning/src/onion_message/async_payments.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ use crate::prelude::*;
1919
use crate::util::ser::{Readable, ReadableArgs, Writeable, Writer};
2020

2121
// TLV record types for the `onionmsg_tlv` TLV stream as defined in BOLT 4.
22-
const OFFER_PATHS_REQ_TLV_TYPE: u64 = 65538;
23-
const OFFER_PATHS_TLV_TYPE: u64 = 65540;
24-
const SERVE_INVOICE_TLV_TYPE: u64 = 65542;
25-
const INVOICE_PERSISTED_TLV_TYPE: u64 = 65544;
22+
const OFFER_PATHS_REQ_TLV_TYPE: u64 = 75540;
23+
const OFFER_PATHS_TLV_TYPE: u64 = 75542;
24+
const SERVE_INVOICE_TLV_TYPE: u64 = 75544;
25+
const INVOICE_PERSISTED_TLV_TYPE: u64 = 75546;
2626
const HELD_HTLC_AVAILABLE_TLV_TYPE: u64 = 72;
2727
const RELEASE_HELD_HTLC_TLV_TYPE: u64 = 74;
2828

0 commit comments

Comments
 (0)