Skip to content

Commit df5e5a1

Browse files
committed
f - explicit encodings
1 parent b153f50 commit df5e5a1

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

lightning/src/offers/offer.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ use io;
6363
use ln::features::OfferFeatures;
6464
use ln::msgs::MAX_VALUE_MSAT;
6565
use onion_message::BlindedPath;
66-
use util::ser::{Writeable, Writer};
66+
use util::ser::{HighZeroBytesDroppedBigSize, WithoutLength, Writeable, Writer};
6767
use util::string::PrintableString;
6868

6969
use prelude::*;
@@ -431,17 +431,17 @@ impl Amount {
431431
pub type CurrencyCode = [u8; 3];
432432

433433
tlv_stream!(OfferTlvStream, OfferTlvStreamRef, {
434-
(2, chains: Vec<ChainHash>),
435-
(4, metadata: Vec<u8>),
434+
(2, chains: (Vec<ChainHash>, WithoutLength)),
435+
(4, metadata: (Vec<u8>, WithoutLength)),
436436
(6, currency: CurrencyCode),
437-
(8, amount: u64),
438-
(10, description: String),
437+
(8, amount: (u64, HighZeroBytesDroppedBigSize)),
438+
(10, description: (String, WithoutLength)),
439439
(12, features: OfferFeatures),
440-
(14, absolute_expiry: u64),
441-
(16, paths: Vec<BlindedPath>),
442-
(18, issuer: String),
443-
(20, quantity_min: u64),
444-
(22, quantity_max: u64),
440+
(14, absolute_expiry: (u64, HighZeroBytesDroppedBigSize)),
441+
(16, paths: (Vec<BlindedPath>, WithoutLength)),
442+
(18, issuer: (String, WithoutLength)),
443+
(20, quantity_min: (u64, HighZeroBytesDroppedBigSize)),
444+
(22, quantity_max: (u64, HighZeroBytesDroppedBigSize)),
445445
(24, node_id: PublicKey),
446446
});
447447

0 commit comments

Comments
 (0)