Use u32 instead of usize in Retry::Attempts
authorJeffrey Czyz <jkczyz@gmail.com>
Tue, 5 Sep 2023 20:21:35 +0000 (15:21 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Thu, 7 Sep 2023 21:55:22 +0000 (16:55 -0500)
commit2f6b5d157a00181e8554383653aac48552dec524
treebbd4edfad074d346d0fe645a6d66312651c5af7b
parent50336b3c7bcfea979c65fc34443bdd24b6fcc372
Use u32 instead of usize in Retry::Attempts

An upcoming commit requires serializing Retry, so use a type with a
fixed byte length. Otherwise, using eight bytes to serialize a usize
would fail to read on 32-bit machines.
lightning/src/ln/outbound_payment.rs